Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Next: , Previous: installing-binaries, Up: Top



2 Quick Instructions for Installing NetCDF on Unix

Who has time to read long installation manuals these days?

To install netCDF, uncompress and unpack the tar file, then change to the distribution directory:

     gunzip netcdf-3.6.2.tar.gz
     tar -xf netcdf-3.6.2.tar
     cd netcdf-3.6.2

Now run the usual configure, make check, make install cycle:

     ./configure
     make check
     make install

The configure script will try to find necessary tools in your path. When you run configure you may optionally use the –prefix argument to change the default installation directory. For example, the following will install the library in /usr/local/lib, the header file in /usr/local/include, and the utilities in /usr/local/bin.

     ./configure --prefix=/usr/local

The default install root is /usr/local (so there's no need to use the prefix argument if you want the software installed there).

By default the netCDF configuration will build static libraries only. For shared libraries as well, use the –enable-shared option to configure.

If all this doesn't work, then you might have to read the next chapter. Better luck next time!
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690