Installing Chaste on MacOS Mojave

Warning: we're currently writing this guide and currently it does not work'''

This install guide is based upon a fresh install of OSX Mojave in October 2018.

It worked for cell based with scons on the 2nd of November 2018 (please update this page if it works for you, or send a message to chaste-users@…)

Xcode

Install Xcode from app store. (Version 10.0)

  • Xcode provides the "g++" compiler

Home Brew

see http://mxcl.github.com/homebrew/

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Check brew doctor to ensure homebrew is installed properly

Dependencies

If you're using the cell based code only you can roll the next few installs together. It will take a while.

brew install wget scons xerces-c petsc sundials xsd cmake vtk

This installs the necessary programs (may need to enter your password)

brew cask install xquartz paraview

Parmetis

There's no homebrew installer for parmetis so install this directly

Download and unzip the installer (4.0.3) from http://glaros.dtc.umn.edu/gkhome/metis/parmetis/download

in the parmetis directory

make config
make 
make install

You can now delete the downloaded files if you like

Get the chaste source code

See

https://chaste.cs.ox.ac.uk/trac/wiki/ChasteGuides/AccessCodeRepository

You will need to change line 59 of

    self._cc_flags = ['-Wall', '-Werror']

to

    self._cc_flags = []

Host Config

Use attachment:local.py (experimental) for your host config?. Note some of the version numbers will need to be updated to the current versions on Homebrew.

Save it as python/hostconfig/local.py.


More for the developer

Valgrind

Not necessary, but useful to the serious developer.

brew install valgrind

Handy things

To be able to see the tmp folder in finder use

sudo chflags nohidden /tmp

Useful aliases to add to ~/.bash_profile

nano ~/.bash_profile
alias cdchaste='cd /Users/chaste/workspace/Chaste' #Or similar