sandbox/INSTALL_MACOS

For Mac OS X users

If you don’t have Xcode, install it following this link. You’ll also need brew to install gdb later

Then, take the mac os x config file and copy it :

cd basilisk/src
cp config.osx config
make

Be carefull of the different name of the .bashrc file on mac :

cd ~/basilisk/src
echo "export BASILISK=$PWD" >> ~/.bash_profile
echo "export PATH=$PATH:$PWD" >> ~/.bash_profile

To use Makefile, you need to install manually gdb by using brew :

brew install gdb

Then, you need to certify it, which is not an easy thing to do. So, go to this link and go directly to the “Certify GDB” section. Then just follow the instructions.

To test the Makefile, go to /basilisk/src/test and make a test file (here, bump2D):

cd ~/basilisk/src/tests
make bump2D.tst

You’ll have several warnings, which are not important. If you’ll have “make: * [bump2D.tst] Error” on the last line, then you must check the file “gdb.err” in the “bump2D” repertory. If the content of this file is starting by “Unable to find Mach task port for process-id”, so something went wrong in the certifying process and you must restart it.