NSF Unidata

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

[netCDF #IYS-276599]: 'netcdf.h' error even though I set CPPFLAGS

This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.



Hi Ravi,

This appears to be the same problem as the previous attempt to install netCDF
Fortran.  You have to install the netCDF C library first, then you can build
and install the netCDF Fortran library, which depends on it.

--Russ

> I am getting an error while doing a './configure --prefix=....' installing 
> NETCDF. I read on forums that not setting CPPFLAGS is one cause. But I *am* 
> setting CPPFLAGS, as can be seen in the attached config.log file. I have no 
> idea why it is still giving the following error. I used 'export 
> CPPFLAGS=-I/.....'.
> Thanks
> Ravi
> 
> ***************
> configure: checking types, headers, and functions
> checking netcdf.h usability... no
> checking netcdf.h presence... no
> checking for netcdf.h... no
> configure: error: netcdf.h could not be found. Please set CPPFLAGS.
> ****************
> 
> 

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



Ticket Details
===================
Ticket ID: IYS-276599
Department: Support netCDF
Priority: Normal
Status: Closed