アットウィキロゴ

netcdf

To install netcdf on Ubuntu system

Basically Follow This Webpage.

Prerequests

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

Copy (Modified) Start From Here

HDF5

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


netCDF4

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


Installing netcdf4-python

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

Copy End Here

CMAKE

Or you can use cmake/ccmake if .configure doesn't work.

 cmake or ccmake
 make -j 4
 sudo make install
最終更新:2016年03月16日 23:58