-
Date: Jun 1, 2019
-
Note that the clang, gcc, python, postgresql versions evolve with time. Pick a consistent set for installing your ports
-
In our case, we will be using clang8.0, gcc7, python37 and postgresql10
-
Note that we now use clang for all OS X related software compilation. We still need gcc mostly for the gfortran compiler. One change to the instructions is that we will no longer use the +gcc variant for the ports.
-
sudo port install iterm2
- We use iterm2 instead of the inbuilt terminal. Pick a good color scheme - e.g, solarized.
-
sudo port install MacVim
- This is the linux equivalent of gvim.
- For more details on customizing vim with plugins - see https://github.com/piyushrpt/vimsetup
-
sudo port -v install xorg-server
- This will install XQuartz. This is different from previous set of instructions where we installed XQuartz using the dmg file.
-
sudo port install clang-8.0
- sudo port select clang mp-clang-8.0
- Restart terminal after this
-
sudo port select gcc7
- sudo port select gcc mp-gcc7
- Restart terminal after this
-
sudo port install python27
- sudo port select python python27
-
sudo port install python37
- sudo port select python3 python37
- sudo ln -s /opt/local/Library/Frameworks/Python.framework/Versions/3.7/include/python3.7m /opt/local/include/python3.7m
- The link command is to keep the paths simpler for use with installing software from source
- sudo port install cmake gmake bison gawk autoconf autoconf-archive
- sudo port install gconf coreutils automake pkgconfig dpkg ctags
- sudo port install tree unzip unrar szip p7zip gzip gnutar cabextract
- sudo port install gawk gsed
- sudo port install wget +ssl
- sudo port install freetype tiff openmotif
- sudo port install subversion bzr git rsync
- sudo port install py37-pip
- sudo port install fftw-3 fftw-3-single fftw-3-long
- sudo port install lapack eigen3 gsl
- sudo port install cgal sfcgal
- sudo port install hdf4 hdfeos
- sudo port install hdf5 hdfeos5 h5utils
- sudo port install netcdf netcdf-cxx netcdf-fortran
- sudo port install postgresql10 postgresql10-server
- Follow instructions for setting up db that are displayed on the screen during installation
- sudo port install cairo gimp2 ImageMagick
- sudo port install py37-numpy py37-scipy
- sudo port install py37-matplotlib
- sudo port install py37-pandas
- sudo port install py37-cython
- ln -s /opt/local/bin/cython-3.7 /opt/local/bin/cython3
- The link reproduces the environment that we usually get on linux machines
- sudo port install py37-h5py
- sudo port install py37-matplotlib-basemap
- sudo port install py37-sympy py37-yaml py37-simplejson py37-networkx
- sudo port install zmq py37-zmq
- sudo port install scons
- sudo port install opencv +python37
- sudo port install py37-ipython
- sudo port select --set ipython3 py37-ipython
- sudo port install proj
- sudo gdal +curl +expat +geos +hdf4 +hdf5 +netcdf +openjpeg +postgresql95 +sqlite3
- Add this environment variable to "basic" module (preferred) or in .bashrc/.bash_profile/.profile (Not recommended). See modules.md.
- GDAL_DATA=/opt/local/share/gdal
- sudo port install py37-gdal
- sudo port install gmt5 +fftw3
- sudo port install -s kealib
- Don't forget the "-s" to indicate build from source
- Add this environment variable to "basic" module (preferred) or in .bashrc/.bash_profile/.profile (Not recommended). See modules.md.
- GDAL_DRIVER_PATH=/opt/local/lib/gdalplugins
- sudo port install postgis2 +gui +postgresql10 +raster +sfcgal +topology
- sudo port install liblas
- sudo port install grass7 +postgresql10
- sudo port install qgis3 +postgresql10 +python37
- sudo port install py37-cartopy py37-shapely py37-fiona py37-rasterio
- sudo port install aria2 openldap samba3
- sudo port install texlive +doc +full
- This is full LaTeX installation. Only needed if you plan to use LaTeX
- sudo port install pandoc
- This is used to convert documents from one format to another
- sudo port install py37-sphinx
- sudo port install doxygen
- sudo port install py37-jupyter py37-jupyter_client
- Instructions for installing contributed notebook extensions
- sudo pip-3.7 install jupyter_contrib_nbextensions
- sudo jupyter-3.7 contrib nbextension install --user
- Instructions for installing extension configurator
- sudo pip-3.7 install jupyter_nbextensions_configurator
- sudo jupyter-3.7 nbextensions_configurator enable --user
- hide_code plugin for hiding cells with code if needed
- sudo pip-3.7 install hide_code
- sudo jupyter-3.7 nbextension install --py hide_code
- RISE plugin to turn notebooks into slideshow
- sudo pip-3.7 install RISE
- sudo jupyter-nbextension-3.7 install rise --py --sys-prefix