Apple released their new OS (Yosemite) a few weeks ago. Unfortunately upgrading to the new system breaks the installation of NONMEM, PsN, and Pirana. Here’s what I did to get up and running again. Altogether this should take less than 20 minutes. Please note that I cannot be held liable for any damage caused directly or indirectly by following the advice below!
Step 1: You need to re-install gcc/gfortran. You can install from source, or from e.g. HomeBrew, but I just chose to take the binaries from this page which had just updated their versions. Download gcc and gfortran for Yosemite. Then in the console run:
Step 2: Re-install the Apple developer tools for Yosemite. Download and install the ones for OSX 10.10.
Step 3: Now you are ready to re-install NONMEM. I used:
(But change the source and target folders to your own of course!)
Step 4: Don’t forget to update psn.conf if you installed to a new location. Use e.g.:
to edit the system-wide configuration file or
if you have a personal psn.conf file. Also, you might need to re-install some Perl modules for PsN:
Step 5: To make Pirana work again, the only thing you need to do is re-install XQuartz, download here
That’s all, folks!
Update Jan 7th 2015
If after upgrading you encounter the following error when running a model with PsN:
in Pirana go to Settings –> Environment variables –> Set other environment variables. Add in the text-box:
and save the settings. This will basically clear this variable from the environment, and PsN should run without errors again.