This document contains instructions for building and installing the netCDF package from source on an HP-UX 11.11i platform.
You will find an installation document for various platforms on:
http://www.unidata.ucar..edu/pakages/netcdf/INSTALL.htmlYou will find the used version on this CDROM or, if you want, can retreive this version from the 'unidata' site:
ftp://ftp.unidata.ucar.edu/pub/netcdf/Below you will find the description specific for HP-UX 11.11i.
Mount this CDROM to your system, usually a super-user action.
/etc/mount /dev/dsk/cdrom /cdrom
cd /cdrom/TOOLS/netCDF/HPUXCopy the compressed tar-file into the /opt directory on your system
cp netcdf-3_5_1-beta3_tar.Z /opt/.Uncompress the file with
cd /optUnpack the tar-file with
uncompress -v netcdf-3_5_1-beta3_tar.Z
tar –xvf netcdf-3_5_1-beta3_tarStep to the source directory for installation
cd netcdf-3.5.1-beta3/srcSet environment variables (here for k-shell)
export FLIBS=-lU77To create the makefiles needed to build NetCDF, you have to run the configure script. This script will examine your computer system – checking for attributes that are relevant to building the netCDF package, a config.log file is created.
./configureRun 'make'. This will build one or more netCDF libraries.
makeRun 'make test'. This will verify that the netCDF library and executables have been build properly.
make testRun 'make install'. This will install the created libraries and executables.
make installBy now NetCDF is ready to use.