Basically Follow This Webpage.
UPDATE
sudo apt-get update
COMPILERS
sudo apt-get install cpp g++ gcc gfortran
M4, Curl, zlib
sudo apt-get install m4 curl zlib1g-dev curl-devel libcurl4-gnutls-dev
CCMAKE
sudo apt-get install cmake-curses-gui
PYTHON
sudo apt-get install python python-numpy python-dev python-matplotlib python-scipy
1.Download the current HDF5 source release.
2.Unpack, go into the directory and execute following
./configure --prefix=/usr/local --enable-shared --enable-hl make (make -j 4) sudo make install make check
1.Download the current netCDF4 source release.
2.Unpack, go into the directory and execute following
LDFLAGS=-L/usr/local/lib CPPFLAGS=-I/usr/local/include ./configure --enable-netcdf-4 --enable-dap --enable-shared --prefix=/usr/local make (make -j 4) sudo make install make check
1.Download the current netcdf4-python source release.
2.Unpack, go into the directory and execute following
3.When both HDF5 and netCDF4 are in /usr/local, make sure the linker will be able to find those libraries by executing
sudo ldconfig
NETCDF4-Python
sudo python setup.py install
NETCDF-Python
sudo apt-get install python-netcdf
python setup.py install
Or you can use cmake/ccmake if .configure doesn't work.
cmake or ccmake make -j 4 sudo make install