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

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



Hello Katie,

libnetcdf is the core C library, libnetcdff contain the fortran bindings.  
libnetcdff requires libnetcdf to function properly, so I am surprised that 
libnetcdf is not installed on the system. You should be able to install 
libnetcdf using the system package manager (if you have administrative access); 
if you lack admin access, it may be easiest to talk with the IT person 
responsible for the system.  Otherwise, you will need to build netcdf from 
scratch; the source code is available from 
https://github.com/Unidata/netcdf-c/releases.  If you need help building it, 
please don't hesitate to let us know!

Have a great day,

-Ward 

> Hello,
> 
> 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
> 
> 


Ticket Details
===================
Ticket ID: YMV-880282
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.