[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 940119: compiling netcdf



>Organization: UCSD
>Keywords: 199501192322.AA19707

Hi Ken,

> I am trying to compile and link all netcdf program code on an HP9000 model
> 380 running OS version 8.0 using the command 'make all'. The compilation
> moves along until it gives me an error "cannot find library for
> -lnetcdf". I've looked high and low for the appropriate library but to no
> avail.
>
> I followed the instructions explicitly for modifying the makefile and have
> moved the gmt/lib files into /usr/local/gmt/lib directory. What do you
> suggest next?  > >-- End of excerpt from ken bliss

This sounds like a problem with the GMT Makefiles rather than the netCDF
installation, or possibly not building and installing the netCDF library
before trying to build GMT.

When you first build and installed the netCDF library before trying to build
GMT, you should go through the steps described in the netcdf/INSTALL
document.  Briefly, these are:

        1. `configure' (possibly with arguments or environment variables set)
        2. make (or make all)
        3. make test
        4. make install

The last step should have installed the netCDF library in the directory you
specified to `configure' or in the default directory that `configure' uses
if no installation directory is specified.  If you still have the top-level
netCDF Makefile (created from Makefile.in by the `configure' script), the
directory where the library was installed is given by the value of the
LIBDIR macro, which in turn is derived from the value of the "prefix" macro
by appending "/lib".

______________________________________________________________________________

Russ Rew                                                UCAR Unidata Program
address@hidden                                          P.O. Box 3000
http://www.unidata.ucar.edu/                          Boulder, CO 80307-3000
______________________________________________________________________________