This page discusses installing the LSC Software Stack from MacPorts under Mac OS X.
Installing the LSC Software Stack from MacPorts
Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading open-source software on the Mac OS X operating system. It provides a command-line driven tool that greatly simplifies the task of compiling and installing open-source software on your Mac.
Officially MacPorts is supported on the current and immediately previous macOS releases, so at the time that is 10.10 (Yosemite) and 10.11 (El Capitan), earlier releases are supported on a best effort basis.
Installing, and updating MacPorts
There is detailed documentation on how to install
MacPorts on the project page. It is a simple process, you can either download a binary installer for your platform or download and build the source code yourself. Once MacPorts has been installed you need to apply available updates by running the following:
sudo port -d selfupdate
This checks to see if there is a newer version of MacPorts base
available, installing it if appropriate, and updates your ports tree to the latest version. This step should be done every now and again to ensure you are running the latest version, of both MacPorts base and the ports tree.
Installing the LSC Software Stack
With the MacPorts base system now installed, and up to date, it is a straightforward process to install the LSC Software Stack. There is a meta-port that installs all the dependencies required for developing Glue and LALSuite, which can be installed by running:
sudo port install lscsoft-deps
This will then install all
the dependencies required for running and developing Glue, LALSuite, and PyLAL from the Git development repositories:
lscsoft-deps @20160408 (science)
Variants: [+]glue, [+]gstlal, [+]lalsuite, [+]pylal
Description: This is a meta-port that depends on all the ports needed
for developing Software used within the LIGO Scientific
Runtime Dependencies: git, autoconf, automake, libtool, pkgconfig, python27,
py27-numpy, py27-pyrxp, py27-m2crypto, py27-cjson,
py27-pyxmpp, py27-libxml2, py27-m2crypto, py27-dnspython,
pkgconfig, swig, swig-python, py27-healpy, gsl, fftw-3,
fftw-3-single, libframe, ldas-tools-framecpp, metaio,
libxml2, glib2, healpix-c, hdf5, py27-scipy,
py27-matplotlib, py27-matplotlib-basemap, orc,
Maintainers: firstname.lastname@example.org, email@example.com, firstname.lastname@example.org
this will take a long time to install as one of the dependencies is
which, in turn, requires a fortran compiler to be available, as Xcode does not provide a fortran compiler one must be built from source.
After installation you will need to make the MacPorts python the active version, so the appropriate modules can be found, by running:
sudo port select --set python python27
Installing release versions of Glue, LALSuite, PyLAL, gstLAL, etc...
The release version of Glue is also available in MacPorts and can be installed with:
sudo port install glue
The release versions of the LALSuite packages, LAL, LALFrame, LALMetaIO?
, ..., LALApps, etc... can be installed with:
sudo port install lalapps
Or specific packages can be installed by replacing
, in the above command, with the required package.
PyLAL can be installed by running:
sudo port install pylal
There are packages which, whilst they are not required
for using LSC Software, make things easier. One of these is
, an interactive python shell, this can be installed with:
sudo port install py27-ipython -scientific
sudo port select --set ipython ipython27
Keeping your system up-to-date
Periodically you should check that your system is up-to-date and install all appropriate updates, this can be done by running the following:
sudo port selfupdate
sudo port upgrade outdated
Enabling LSCSoft Testing
There is a MacPorts testing repository available that contains versions of the LSCSoft Suite before they have been approved for production use by the SCCB. If you want to enable this simply edit the
file and add
so that it is before
Then simply sync your ports tree, and upgrade any outdated ports.
If you run into any problems building any of the above ports then the quickest way to get this to the attention of the relative MacPorts maintainer is to file a ticket
. Please make sure you add
ram @ macports.org
to the CC field.
For other questions please ask on the LIGOMac