Building NetCDF

NetCDF (network Common Data Form) is an interface for array-oriented
data access and a library that provides an implementation of the
interface. The netCDF library also defines a machine-independent
for representing scientific data. Together, the interface, library, and
support the creation, access, and sharing of scientific data.
Steps to building
To build NetCDF, you will need to download the source,
configure it, and then build it. These steps, and any known
limitations, are described in the sections below.

Downloading NetCDF
NetCDF can be downloaded at the NetCDF
website
. NetCDF is not a performance-intensive code, so we recommend
building it with the -O2 -g flags.

Building NetCDF
For this example we've chosen to build version 3.6.0-p1. The EKOPath
compiler has also been tested with version 3.5.1. To build NetCDF,
first get the souce code and unpack it.

tar xzf netcdf.tar.gz
cd netcdf-3.6.0-p1/src

Now set the flags to configure NetCDF to build with the PathScale compilers.

export CC=pathcc
export CFLAGS='-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O2 -g '
export CPPFLAGS=-Df2cFortran
export CXX=pathCC
export FC=pathf90
export FFLAGS='-O2 -g '
export CXXFLAGS='-O2 -g '
./configure

To clean up any earlier versions of NetCDF, use this command:

make clean

Then build and install NetCDF with these commands:

make
make test
make install

Known limitations
There are no known limitations.

We recommend you record what steps you took, along with their output,
in case of problems. You can include this in your email to support.
Here is an example of changing a make command to record the output in a
text file:

make foo 2>&1 | tee make-foo-log.txt

If you have any comments or suggestions about additions to these
pages, please contact support@pathscale.com.