Downloading a disk image
To determine which downloadable disk image to download, you need to know:
- which version of MacOS you are running (e.g., 10.10)
- which architecture your machine is (e.g., x86_64)
You can find that information by choosing "About this Mac" under the Apple menu.
Here are the downloadable disk images and their corresponding signature files (see PublicKeys); the name of the file incorporates the architecture and Mac OS version number, as explained above.
- Macaulay2-1.10-x86_64-MacOS-10.12.4.dmg, 50377657 bytes, June 14, 2017, .sig
- Macaulay2-1.9.2-x86_64-MacOS-10.11.6.dmg, 42610749 bytes, August 16, 2016, .sig
- Macaulay2-1.9.1-x86_64-MacOS-10.11.5.dmg, 43343513 bytes, July 11, 2016, .sig
- Macaulay2-1.9-1-x86_64-MacOS-10.11.3.dmg, 43614393 bytes, May 8, 2016
- Macaulay2-1.8.2-x86_64-MacOS-10.10.3.dmg, 35693484 bytes, July 11, 2015, .sig
- OldVersions --> /home/25/dan/public_html/OldVersions/
For Mac OS X 10.5 and later, remember to run the following command on the dmg file you download with a browser before opening it, or else each time you open one of its html files later with a browser, you will be warned by the browser with a pop-up dialogue box.
xattr -d com.apple.quarantine Macaulay2*.dmg
If the system responds "No such xattr: com.apple.quarantine", then the file was not quarantined, and everything should be fine.
Alternatively, you could have used something like the following command to download the file, without quarantine.
curl http://www.math.uiuc.edu/Macaulay2/Downloads/MacOSX/Macaulay2-1.4-x86_64-MacOS-10.6.dmg -o Macaulay2-1.4-x86_64-MacOS-10.6.dmg
Next, mount the disk image by double-clicking on it. Then drag the Macaulay2 folder in it to somewhere else on your disk. One good location is your system Applications folder, at the top level on your main disk.
There are various options for getting emacs, with which Macaulay2 can be run.
- Use "emacs for Mac OS X", available at http://emacsformacosx.com/. This is a native Mac application, with support for fonts, drag and drop, and cut and paste.
- Use "aquamacs", available at http://aquamacs.org/. This is a native Mac application, with support for fonts, drag and drop, and cut and paste.
- Use /usr/bin/emacs: the problem with it is that it is not X aware, and thus must be run in a terminal window.
- Compile emacs yourself from the source code available at ftp://ftp.gnu.org/gnu/emacs. You will also need to install X11, available, for example at http://xquartz.macosforge.org/.
- Use "homebrew" to install emacs: http://brew.sh/. You will also need to install X11.
Now arrange for Macaulay2 to set up your .emacs files and your command shell init files so that M2 will be on the path.
The easiest way to set up these files is to do the following in a Terminal window (the Terminal application is found in the Utilities folder inside the Applications folder. You might want to drag this application to your dock too).
First run the 'setup' command in Macaulay2 this way, replacing the path /Applications/Macaulay2-1.4 appropriately:
/Applications/Macaulay2-1.4/bin/M2 setup() -- Type these lines inside Macaulay2. -- Answer any questions. exit
After you log out and in again, your PATH will have Macaulay2's bin directory on it. The 'setup' routine will modify (some of) your shell command init files (such as .profile, .bashrc, .login, .cshrc), and your .emacs file. The existing files are backed up first. It also creates files .profile-Macaulay2, .emacs-Macaulay2, and .login-Macaulay2 in your home directory (making no backups of old versions), which do the actual work, including putting M2 on your path.
This allows you to run Macaulay2 by typing:
at a terminal command line, to access the info and man pages, and to use the Macaulay2 emacs interface.
See also setting up the Macaulay2 emacs interface.
Try it out
See the file ReadMe-MacOSX.txt for further installation instructions.