Presentation Supercomputing Computer Database SIEpedia Forum

Follow @SIEie_IAC
Logo SIE

Astronomical Software for Mac OS X

With the arrival of a brand-new iMac with Lion (v10.7.4) in August 2012, the SIE is ready to give some basic support for the installation of astronomical software in Mac OS X. The iMac has been subsequently updated through Mountain Lion, Mavericks and Yosemite to El Capitan 11.11.1.

As our experience with this OS is still limited, please bear with us if we are unable to help you with the installation of the package you need (other than the ones listed below).

As software installation in a Mac can be achieved through different means (downloading the .dmg file, using Fink, MacPorts, Homebrew, compiling from source, etc.), it helps if you try to keep the configuration of your Mac as much aligned as possible with that of our iMac, which we consider as the reference platform (data below as of October 2015):

General Mac OS X Resources

The AstroBetter site, among many interesting posts and discussions on science and technology in general, provides a lot of info and tips about Mac OS X for astronomy.

OS X for Astronomers helps you set up your Apple computer for professional astronomy, while OS X Astro Tricks contain "tips and bug fixes for running astronomy-related software on OS X".


Ureka is an easy-to-install binary package which includes IRAF, DS9, and many Python scientific software packages (scipy, numpy, matplotlib, pyraf, etc.). It permits installation without requiring system privileges. For further details and for installation instructions, see

Individual Packages

If you prefer to install yourself individual packages instead of an "all-in-one" distribution such as Scisoft, here go some pointers.

C and Fortran compilers We installed the v5.1 release (both gfortran and gcc) from HPC. Alternatively, the gfortran maintainers offer nice Apple-style installers for a variety of Mac OS X releases, see
In general you will find multiple gcc versions in your Mac (the Mac OS X's one, the one installed with MacPorts, the other you got from HPC), and this will be bound to cause some confusion (for instance compilation of some particular package succeeds with one compiler and fails with another). In general, to specify which gcc compiler you wish to use, just define the variable:
export CC="/usr/local/bin/gcc"  (this selects the HPC version).
DAOPHOT I managed to compile (with gfortran) and install DAOPHOT in 64bit linking against IRAF v2.16 libraries. Some changes were required in the Makefile, and one of the source files had to be edited to correct a statement that threw an error upon compilation. If you have a legitimate copy of DAOPHOT's source code and wish to install it on a Mac, get in touch with us.
DS9 Download and install the appropriate DS9 binary from Do not install v7.2 though, as its has a bug affecting cursor coordinates in IRAF (try the latest 7.3 or 7.4 stable versions).
Gipsy The installation procedure was a little convoluted, and required a slight modification of the setup file, but at the end it worked out (not the Python wrapper though). If you need help to install Gipsy in your Mac, get in touch with us.
HEAsoft Compilation is straightforward, you only need to be careful about what specific compilers you use. See the HEAsoft Supported platforms page for details. The combination of compilers/flags that worked for me was:
export CC=/usr/bin/gcc
export CXX=/usr/bin/g++
export FC=/usr/local/bin/gfortran
export PERL=/usr/bin/perl
IRAF We chose to download and install IRAF for MacIntel from the IRAF website: step-by-step instructions can be found in the SIEpedia article How to install IRAF 2.16 in Mac OS X. Alternatively, install Ureka.
IDL For IAC users, instructions on how to install IDL in a Mac can be found in file: /net/nas4/inves2/sieinves/invsoft1/IDL_installation_instructions.txt.
To use the IAC floating licenses, define the following environment variable:
export LM_LICENSE_FILE="1700@zuko" (bash)
setenv LM_LICENSE_FILE "1700@zuko" (csh/tcsh)
LaTeX MacTeX seems to be the most popular LaTeX distribution for Mac. We installed it from You may also wish to install TeXShop.
Mathematica Ask us for the .dmg file to install the latest Mathematica release. When launching Mathematica for the first time, click on "Other ways to activate", select "Connect to a network license server" and type "zuko" (without quotation marks) in the Server name box. Then click "Activate". That's it.
MIDAS You will have to compile the source code yourself. Visit: for further details about MIDAS and for download/installation instructions. When we compiled MIDAS (12FEBpl1.3), we got the message "WARNING: Motif library release not found". The solution was simply to type /opt/local/lib when prompted for the directory containing the Motif library.
Python Python (plus several python scientific packages such as numpy, scipy, matplotlib, etc.) were installed using MacPorts, following the instructions in MacPorts Python installation on Mac - 10 easy steps.
Alternatively, one can install the Anaconda Python distribution.
STSCI_Python It can be easily installed from the tarfile. The only caveats are that I had to use the HPC's gcc compiler, and set the --user flag (as explained in the MacPorts Python link above). Basically, what I did was:
cd /path/to/stsci_python-2.13/
export CC="/usr/local/bin/gcc"
/opt/local/bin/python install --user

The PyRAF command will be in ~/Library/Python/2.7/bin/pyraf (you can create an alias, or make a symlink in /usr/local/bin/)
Starlink We downloaded and installed the 2015A release for 64-bit Intel OS X 10.8 (Mountain Lion) or 10.9 (Mavericks).
SuperMongo Supermongo works fine, however you need to compile and install the version patched for Lion (it fixes a conflict with the getline library). For installation in Mountain Lion, I had to work around a problem with bison.
The source code tarfile can be found in (only IAC users): /net/nas4/inves2/sieinves/invsoft1/sm-latest.tar.gz
To fix the problem with line editing and command recalling, from the SM prompt type termtype xterm.
Non-IAC users must ask the SM authors for a copy of the tarfile.