This is an old revision of the document!
Before reading this, you should first read the W-phase documentation wiki page.
Pre-requirements:
To install homebrew, in bash:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”
To check if everything is OK, use:
brew doctor
To install gcc-4.9 and python2.7:
brew install gcc brew install python
Install required python modules using pip:
pip install numpy pip install matplotlib pip install basemap --allow-external basemap --allow-unverified basemap
We will also need ghostscript and gmt4:
brew install ghostscript brew install gmt4
To install GNU core utilities:
brew install coreutils
Then:
brew tap homebrew/dupes brew install binutils brew install diffutils brew install ed --default-names brew install findutils --default-names brew install gawk brew install gnu-indent --default-names brew install gnu-sed --default-names brew install gnu-tar --default-names brew install gnu-which --default-names brew install gnutls --default-names brew install grep --default-names brew install gzip brew install screen brew install watch brew install wdiff --with-gettext brew install wget
Add the following to your .bashrc file:
export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH export LD_INCLUDE_PATH=/usr/local/include:$LD_INCLUDE_PATH
To install the code, we must first setup a few environment variables as specified in the W-phase documentation wiki page. Before compiling the code, replace “gcc” by “gcc-4.9”.