On some of the computer systems used in the CKO, the NetCDF library is not available in a standard location. On these systems you have to install your own copy of the library. This page contains instructions on how to do this.
| Teras at SARA |
Download and unpack the NetCDF distribution from the
UNIDATA
web site. Then enter the following commands
when you are using a Bourne shell (sh) or derived
shell (ksh,bash):cd netcdf-3.5.0/src CC=cc ./configure --prefix=$HOME make make check make installor when you are using a C shell look-a-like: cd netcdf-3.5.0/src env CC=cc ./configure --prefix=$HOME make make check make install |
| Linux PCs with Lahey/Fujitsu Fortran |
Download and unpack the NetCDF distribution from the
UNIDATA
web site. Then download and unpack
this patch.
Hereafter enter the following commands
when you are using a Bourne shell (sh) or derived
shell (ksh,bash):cd netcdf-3.5.0/src FC=lf95 CPPFLAGS=-DlaheyFortran ./configure --prefix=$HOME make make check make installor when you are using a C shell look-a-like: cd netcdf-3.5.0/src env FC=lf95 CPPFLAGS=-DlaheyFortran./configure --prefix=$HOME make make check make install |
| Linux PCs with Portland Group Fortran | Follow the instructions for the Lahey/Fujitsu Fortran compiler but using FC=pgf90 and CPPFLAGS=-DpgiFortran. |
Note that in the instructions above the name of the netcdf directory might be slightly different if you are using a different version of the library. Also note that you can replace the directory $HOME with any directory you like, but $HOME is probably the most convenient location to install the library, header files and tools.
Return to the CKO modelling support page