Next: Running make, Previous: Building on 64 Bit Platforms, Up: Building and Installing NetCDF on Unix Systems
To create the Makefiles needed to build netCDF, you must run the provided configure script. Go to the top-level netCDF src/ directory.
Decide where you want to install this package. Use this for the "–prefix=" argument to the configure script below. The default installation prefix is "..", which will install the package's files in ../bin, ../lib, and ../man relative to the netCDF src/ directory.
Execute the configure script:
./configure --prefix=whatever_you_decided
The "–prefix=..." specification is optional; if omitted, ".." designating the parent directory will be used as a default. There are other options for the configure script. The most useful ones are listed below. Use the –help option to get the full list.
--prefix--disable-flag-setting--enable-64bitThe configure script will examine your computer system – checking for attributes that are relevant to building the netCDF package. It will print to standard output the checks that it makes and the results that it finds.
The configure script will also create the file "config.log", which will contain error messages from the utilities that the configure script uses in examining the attributes of your system. Because such an examination can result in errors, it is expected that "config.log" will contain error messages. Therefore, such messages do not necessarily indicate a problem (a better indicator would be failure of the subsequent "make"). One exception, however, is an error message in "config.log" that indicates that a compiler could not be started. This indicates a severe problem in your compilation environment – one that you must fix.