OSX 10.11.1 (El Capitan)
Prerequisites:
I used MacPorts to install all the required compilers, libraries and such, this file lists all of the packages I have installed: installed_ports_osx_10.11.1.txt. Installing MacPorts will require installing the XCode command line tools, but that is explained on the MacPorts page.
You can use the restore_ports.tcl script to install these ports:
chmod +x restore_ports.tcl sudo ./restore_ports.tcl myports.txt
Note that this will probably take several hours...
I had to put in two extra symlinks because there were places where the name of the compiler seemed to either be hardwired, or where using envvars to specify the compiler messed up other parts of the build process.
/opt/local/bin/gfortran -> /opt/local/bin/gfortran-mp-5
/opt/local/bin/gnu95 -> /opt/local/bin/g95
Building and installing
prompt% tar zxvf ScienceTools-v10r0p5-fssc-20150518A-source.tar.gz
prompt% mv ScienceTools-v10r0p5-fssc-20150518A-source <path>/ST_FSSC-10-00-05
prompt% cd <path>/ST_FSSC-10-00-05/BUILD_DIR
prompt% ./configure --with-root=no
prompt% ./hmake
prompt% ./hmake install
Setting up your env
you will want to add two lines to your setup script, for csh these would be:
setenv FERMI_DIR <path>/ST_FSSC-10-00-05/x86_64-apple-darwin15.0.0
source $FERMI_DIR/fermi-init.csh
2 Comments
Jeremy S. Perkins
Howdy,
I'm seeing a segfault when running gtsrcmaps. Do you see anything similar? I see this with both the gfortran in MacPorts and the one in Homebrew.
Jeremy
Jeremy S. Perkins
Ok, this is due to this issue:
https://jira.slac.stanford.edu/browse/LK-103
I've figured out how to compile using gcc (it's convoluted) on Yosemite and will post instructions once I can distill them out of my notes.