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

[netCDF #GJP-840746]: Netcdf.h cannot be found error when compiling netcdf-fortran

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.


  • Subject: [netCDF #GJP-840746]: Netcdf.h cannot be found error when compiling netcdf-fortran
  • Date: Tue, 14 May 2024 18:17:41 -0600

Hello,

What version of netCDF-C did you compile, and where did you install it? This 
will let us know how to set the flags netCDF-Fortran requires.

-Ward


> Hi,
> 
> I encountered  a C compiler cannot create executables' configuration error 
> when trying to compiling netcdf-fortran alongside with netcdf-c.
> 
> I'm using Manjaro Linux 23.1.4 Vulcan, gcc version13.2.1 20230801 (GCC) , 
> gfortran version13.2.1 20230801.
> 
> My .zshrc file and config.log can be found in attachments.
> 
> 
> Zeshen Zhang
> M.Sc. Student, Atmospheric Science
> State Key  Laboratory of Severe Weather
> Chinese Academy of Meteorological Sciences (CAMS), Beijing 100081, China
> Email: address@hidden
> 
> 
> 


Ticket Details
===================
Ticket ID: GJP-840746
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with NSF 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.