User Tools

Site Tools


wphase:macos

This is an old revision of the document!


HowTo install W-phase dependencies on MacOS using homebrew and pip

Before reading this, you should first read the W-phase documentation wiki page.

The instructions below have not been rigorously tested, please report any problem to Zacharie Duputel zacharie.duputel@unistra.fr or Luis Rivera luis.rivera@unistra.fr.

Install Homebrew

For detailed information, please refer to http://brew.sh and https://github.com/Homebrew/homebrew

Pre-requirements:

  • An Intel CPU 1
  • OS X 10.6 or higher 2
  • Command Line Tools for Xcode: xcode-select –install, https://developer.apple.com/downloads or Xcode 3
  • A Bourne-compatible shell for installation

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

Install gcc, python, pip and other dependencies

To install gcc-4.9 and python2.7:

brew install gcc
brew install python

Homebrew installs pip with 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

Building W-phase

  • Before compiling the code, replace “gcc” by “gcc-4.9” in src/Makefile (or any other recent version gcc of installed with homebrew).
  • You can then compile the W-phase code as explained in the documentation wiki page.
wphase/macos.1422036820.txt.gz · Last modified: 2015/01/23 19:13 by wphase