This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
wphase:macos [2015/01/23 19:16] wphase |
wphase:macos [2015/02/03 09:23] (current) wphase |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======= HowTo install W-phase dependencies on MacOS using homebrew and pip ======= | + | ======= Install W-phase dependencies on MacOS using homebrew and pip ======= |
| - | Before reading this, you should first read [[wphase:documentation|the W-phase documentation wiki page]]. | + | Before reading this, you should first read [[wphase:documentation|the W-phase documentation 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>. | + | The instructions below have not yet been rigorously tested, please report any problem to Zacharie Duputel <zacharie.duputel@unistra.fr> or Luis Rivera <luis.rivera@unistra.fr>. |
| ===== Install Homebrew ===== | ===== Install Homebrew ===== | ||
| Line 43: | Line 43: | ||
| </code> | </code> | ||
| - | We will also need ghostscript and gmt4: | + | We will also need gmt4: |
| <code> | <code> | ||
| - | brew install ghostscript | ||
| brew install gmt4 | brew install gmt4 | ||
| </code> | </code> | ||
| + | As indicated in [[wphase:documentation|the documentation page]], the GMT_BIN environment variable should point to appropriate GMT bin directory (e.g., "/usr/local/bin" or "/usr/local/Cellar/gmt4/4.5.13/bin"). | ||
| Line 58: | Line 58: | ||
| <code> | <code> | ||
| brew tap homebrew/dupes | brew tap homebrew/dupes | ||
| + | brew install ghostscript | ||
| brew install binutils | brew install binutils | ||
| brew install diffutils | brew install diffutils | ||
| Line 76: | Line 77: | ||
| </code> | </code> | ||
| - | Add the following to your .bashrc file: | + | Finally, add the following lines to your .bashrc file: |
| <code> | <code> | ||
| export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" | export PATH="$(brew --prefix coreutils)/libexec/gnubin:/usr/local/bin:$PATH" | ||
| Line 86: | Line 87: | ||
| * Before compiling the code, replace "gcc" by "gcc-4.9" in src/Makefile (or any other recent version gcc of installed with homebrew). | * 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 [[wphase:documentation|the documentation wiki page]]. | + | * You can then compile the W-phase code as explained in [[wphase:documentation|the documentation page]]. |