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

[netCDF #ITK-193191]: Netcdf -fortran-4.2 problem

Hi Gerry!

> Howdy! This is likely to be a case of missing something self-evident,
> but I've run into a snag.
> The error is:
> configure: error: netcdf.h could not be found. Please set CPPFLAGS.
> I have config'd and compiled/installed the C libs more'r'less
> successfully. I think. Config and compile logs are attached.
> A find on the install dir yields this:
> address@hidden:/data/gerry/NetCDF4.2]$ find . -name netcdf.h
> ./netcdf-4.2/include/netcdf.h
> ./include/netcdf.h
> and the prefix is set for /data/gerry/NetCDF4.2 (./configure
> --disable-netcdf-4 --prefix=/data/gerry/NetCDF4.2 && make > compile.log
> 2>&1 &)
> On configuration of netcdf-gfortran, I get the error.
> Any ideas?

I think all you need to do is set CPPFLAGS=-I/data/gerry/NetCDF4.2/include and 
LDFLAGS=-L/data/gerry/NetCDF4.2/lib before running the configure script in the
Fortran package.  An example is here:



Russ Rew                                         UCAR Unidata Program
address@hidden                      http://www.unidata.ucar.edu

Ticket Details
Ticket ID: ITK-193191
Department: Support netCDF
Priority: Normal
Status: Closed

NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.