[RegCNET] How to install Netcdf4

bixq bixq at ictp.it
Fri Nov 12 16:01:32 CET 2010


Thanks for Martin Scarcia for his suggestions of steps at:

http://doc.escience-lab.org/index.php/HPC/Netcdf


On Thu, 4 Nov 2010, bixq wrote:

>
> Dear all:
>
> Could someone please tell us the exact steps to install NetCDF4 ?
>
> How to install NetCDF4 with HDF5 support ?
>
> Firstly, let me start with what I knew, I do need the help for
> the following step 4a and 4b, or the better ways for step 1-3
> is also welcome.
>
> Step 0: I have Mandriva Linux, and with Intel FORTRAN/C++ and openmpi 
> installed. I use bash.
>
> Step 1: install szip
>
>    wget ftp://ftp.hdfgroup.org/lib-external/szip/2.1/src/szip-2.1.tar.gz
>    tar zxvf szip-2.1.tar.gz
>    cd szip-2.1
>    export CC=icc CXX=icpc F77=ifort
>           CFLAGS='-O3 -xP -ip'
>           CXXFLAGS='-O3 -xP -ip'
>           FFLAGS='-O3 -xP -ip'
>    ./configure --prefix=/usr/local/szip-2.1
>    make
>    make check
>    make install
>
> Step 2: install zlib
>
>    wget http://zlib.net/zlib-1.2.5.tar.gz
>    tar zxvf zlib-1.2.5.tar.gz
>    cd zlib-1.2.5
>    export CC=icc CFLAGS='-O3 -xP -ip'
>    ./configure --prefix=/usr/local/zlib-1.2.5
>    make
>    make check
>    make install
>    (the package has small problem, I have to
>         mkdir /usr/local/zlib-1.2.5/include
>         cp zlib.h zconf.h /usr/local/zlib-1.2.5/include )
>
> Step 3: install HDF5
>
>    wget 
> http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.5-patch1.tar.gz
>    tar zxvf hdf5-1.8.5-patch1.tar.gz
>    cd hdf5-1.8.5-patch1
>    export CC=icc F9X=ifort CXX=icpc
>    ./configure --prefix=/usr/local/hdf5-1.8.5
>                --enable-fortran
>                --enable-cxx
>    make
>    make check
>    make install
>
> Step 4a: install NetCDF4
>
>    wget ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf.tar.gz
>    tar zxvf netcdf.tar.gz
>
>    I failed to do the rest things.
>    (Fortunately, I have one banary package to use right now.)
>
> Step 4b: install NetCDF4 with HDF5 support
>
>
>
> It's my hope that your expert reply to this subject could facilitate
> others to use regcm4.0 (and the future RegCM version).
>
> Thanks in advance !
> Xunqiang Bi
>



More information about the RegCNET mailing list