$ sudo apt-get update && sudo apt-get upgrade
$ sudo apt-get autoremove libreoffice-common
$ sudo apt-get install git vim build-essential gfortran
$ wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
$ chmod +x miniconda.sh
$ ./miniconda.sh -b
$ export PATH=/home/grid/miniconda/bin:$PATH
$ conda update conda
$ conda create --name=gridgen seaborn statsmodels ipython-notebook pip nose fiona shapely netcdf4 binstar --yes
$ source activate gridgen
If you're on 64-bit linux:
$ conda install -c https://conda.binstar.org/rsignell pyproj --yes
Or if you're on 32-bit linux:
$ conda install basemap --yes
$ mkdir sources && cd sources
$ git clone https://github.com/geosyntec/pygridgen.git
$ cd pygridgen/external
$ cd nn
$ ./configure
The edit the makefile
and change this (line ~23):
CFLAGS_VULNERABLE = -fno-force-mem -ffloat-store
To say instead:
CFLAGS_VULNERABLE = -ffloat-store
After doing this, do not run ./configure
again.
$ sudo make install
$ cd ..
$ cd csa
$ ./configure && sudo make install
$ cd ..
$ cd gridutils
$ ./configure
Edit the makefile
and change this (line ~31):
CFLAGS = -g -O2 -Wall -pedantic
To this:
CFLAGS = -g -O2 -Wall -pedantic -fPIC
After doing this, do not run ./configure
again
$ sudo make install
$ cd ..
$ cd gridgen
$ ./configure
$ sudo make
$ sudo make lib
$ sudo make shlib
$ sudo make install
$ cd ..
$ cd ~/sources/pygridgen
$ source activate gridgen
$ python setup.py install