Environment setup

# To get trough the firewall!!
export GIT_SSL_NO_VERIFY=true 
# Where do you want you installation?
export PREFIX=$HOME/build
mkdir build
cd build

Compile Dependencies

Retrieve sources

tar xf hdf5-1.8.17.tar
tar xzf netcdf-4.4.0.tar.gz
tar xzf udunits-2.2.20.tar.gz
tar xzf uuid-1.6.2.tar.gz

build libuuid

cd uuid-1.6.2
./configure --prefix=$PREFIX
make 
make install

build udnits2

cd ../udunits-2.2.20
./configure --prefix=$PREFIX
make
make install

build hdf5

cd ../hdf5-1.8.17
./configure --prefix=$PREFIX
make  
make install

build netcdf4

export CFLAGS="-I${PREFIX}/include"
export LDFLAGS="-L${PREFIX}/lib"

cd ../netcdf-4.4.0
./configure --prefix=$PREFIX --enable-netcdf4
make 
make install

Build cmor

cd ..
git clone https://github.com/PCMDI/cmor.git
cd cmor
git checkout master

./configure --prefix=$PREFIX --with-python --with-uuid --with-udunits --with-netcdf=$PREFIX/ 
make 
make install
make python
Tags: