1 | # Environment based on the assumption that we use MacPorts-installed libraries and packages |
---|
2 | # Known to work with the following MacPorts environment : |
---|
3 | # |
---|
4 | # port installed |
---|
5 | # gcc48 @4.8.5_0 |
---|
6 | # openmpi-gcc48 @1.10.3_0+fortran |
---|
7 | # atlas @3.10.2_2 |
---|
8 | # vtk5 @5.10.1_3+python27+tcltk+x11 |
---|
9 | # hdf5 @1.10.0-patch1_0+cxx+gcc48+hl+openmpi |
---|
10 | # netcdf-fortran @4.4.4_0+gcc48+openmpi |
---|
11 | # python27 @2.7.14_0 |
---|
12 | # py27-mpi4py @2.0.0+gcc48+openmpi |
---|
13 | # py27-netcdf4 @1.2.4_1+gcc48+openmpi |
---|
14 | # py27-jinja2 @2.8_0 |
---|
15 | # |
---|
16 | # port select --summary |
---|
17 | # gcc mp-gcc48 |
---|
18 | # python python27 |
---|
19 | # |
---|
20 | # The variants (the +XXX in the package names above) are crucial to ensure consistency across packages. Not all combinations of versions of python, gcc or MPI are possible. |
---|
21 | # To make your choice : |
---|
22 | # "port search PACKAGE" tells you about available packages (examples : port search gcc / port search netcdf) |
---|
23 | # "port info PACKAGE" tells you about available variants like +gcc48 and +openmpi |
---|
24 | # Once you have found a combination of python, gcc and MPI for which all other packages exist : |
---|
25 | # "sudo port install PACKAGE +VARIANT1 +VARIANT2 .." to install |
---|
26 | # This will also install dependent packages, possibly many of them. |
---|
27 | # MacPorts can install several versions/variants of a package simultaneously. Only one is "active" at a time. |
---|
28 | # To make sure that the packages you just installed are indeed active : |
---|
29 | # "port select --summary" tells you about executables/libraries for which several versions coexist and one must be activated |
---|
30 | # "port select GROUP" tells which choices are available within group GROUP (gcc, python ...) |
---|
31 | # "sudo port select GROUP CHOICE" tells MacPorts to activate CHOICE among the various possibilites in GROUP |
---|
32 | |
---|
33 | export CURRENT_ARCH=X64_OSX |
---|
34 | |
---|
35 | # Minimal PATH to make sure we use the MacPorts python & mpif90 |
---|
36 | export PATH=/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/texbin |
---|