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

[netCDF #YMV-880282]: Compiling WRF with NetCDF4



Yes, the netcdf fortran library depends upon the netcdf-c library,
so you need to install the netcdf-c library. Note that the
netcdf-c library depends upon several other libraries: most notably
the HDF5 library.

> 
> I am trying to compile WRFv4.0 with NETCDF4.
> 
> My NetCDF installation only has the libraries libnetcdff with the extra 
> fortran f.
> 
> The WRF configure script has the code:
> 
> if [ -f "$NETCDF/lib/libnetcdf.a" -o -f "$NETCDF/lib/libnetcdf.so" ] ; then
> 
> USENETCDF="-lnetcdf"
> 
> else
> 
> USENETCDF=" "
> 
> fi
> 
> Therefore the USENETCDF variable is empty.
> 
> The makefile for the netcdf test in WRF uses:
> 
> $(SCC) -o nc4_test.exe nc4_test.c -I$(NETCDF)/include -L$(NETCDF)/lib 
> $(USENETCDF)
> 
> This fails because the USENETCDF variable is empty.
> 
> So, should my netcdf installation have both libnetcdf and libnetcdff
> libraries in it?  If so, how is that accomplished?  Sorry, I am working
> on a system where I did not install netcdf and don't know much about
> how it was installed.
> 
> Thanks,
> 
> Katie
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: YMV-880282
Department: Support netCDF
Priority: Normal
Status: Open
===================
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.