... | ... | @@ -9,18 +9,18 @@ To install MacPort: follow the instructions provided [here] (https://www.macport |
|
|
|
|
|
To compile:
|
|
|
```
|
|
|
port install gcc49 python27 py27-numpy swig-python cmake +gui
|
|
|
port install gcc7 python27 py27-numpy swig-python cmake +gui
|
|
|
```
|
|
|
Then you need to set the compiler and python as the default on your system:
|
|
|
```
|
|
|
sudo port select gcc mp-gcc49
|
|
|
sudo port select gcc mp-gcc7
|
|
|
sudo port select python python27
|
|
|
```
|
|
|
_Note: here 49 stands for gcc4.9, any version from gcc4.5 to gcc6 should work_
|
|
|
_Note: here 7 stands for gcc7, any version from gcc4.5 to gcc7 should work_
|
|
|
|
|
|
Optional:
|
|
|
```shell
|
|
|
sudo port install hdf5 +fortran
|
|
|
sudo port install hdf5 +gfortran
|
|
|
```
|
|
|
|
|
|
Optional but recommended:
|
... | ... | @@ -45,4 +45,4 @@ sudo port install py27-jupyter |
|
|
****
|
|
|
|
|
|
| [back](./Prerequisites) | [next](./Download_and_install) |
|
|
|
|:-------------------|--------------------------:| |
|
|
|:------------------------|-------------------------------:| |