[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[netCDF #NTO-571747]: netcdf on CentOS
- Subject: [netCDF #NTO-571747]: netcdf on CentOS
- Date: Fri, 26 Apr 2013 09:41:40 -0600
> Hi, sorry for my delay response...
> I need to install netcdf for ARW-WRF model
>
> When I try to compile the wrf model, There are some errorrs:
>
> ...
> x=`echo "gfortran -w -ffree-form -ffree-line-length-none
> -fconvert=big-endian -frecord-marker=4 " | awk '{print $1}'` ; export x ; \
> if [ $x = "gfortran" ] ; then \
> echo removing external declaration of iargc for gfortran ; \
> /lib/cpp -C -P -C -P -traditional -I/usr/local/netcdf/include
> -I../ioapi_share diffwrf.F90 | sed '/integer *, *external.*iargc/d' >
> diffwrf.f ;\
> else \
> /lib/cpp -C -P -C -P -traditional -I/usr/local/netcdf/include
> -I../ioapi_share diffwrf.F90 > diffwrf.f ; \
> fi
> removing external declaration of iargc for gfortran
> gfortran -w -ffree-form -ffree-line-length-none -fconvert=big-endian
> -frecord-marker=4 -c -I/usr/local/netcdf/include -I../ioapi_share
> diffwrf.f
> diffwrf io_netcdf is being built now.
> wrf_io.o: In function `ext_ncd_get_var_info_':
> wrf_io.f:(.text+0x1fe7): undefined reference to `nf_inq_varid_'
> wrf_io.f:(.text+0x227d): undefined reference to `nf_inq_vartype_'
> wrf_io.f:(.text+0x2720): undefined reference to `nf_get_att_int_'
> wrf_io.f:(.text+0x307f): undefined reference to `nf_get_att_text_'
> wrf_io.f:(.text+0x3361): undefined reference to `nf_inq_vardimid_'
> wrf_io.f:(.text+0x33c8): undefined reference to `nf_inq_dimlen_'
> wrf_io.f:(.text+0x341d): undefined reference to `nf_inq_dimlen_'
> wrf_io.f:(.text+0x3481): undefined reference to `nf_inq_dimlen_'
> ...
>
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to
> `nf_get_varm_double_'
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to
> `nf_def_var_endian_'
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to
> `nf_inq_compound_fieldname_'
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to `nf_inq_typeid_'
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to
> `nf_put_varm_int1_'
> /usr/local/netcdf/lib/libnetcdff.so: undefined reference to
> `nf_def_var_chunking_
>
> ....
>
> Then I run command "find / -name libnetcdff.so"
> /usr/local/netcdf/lib/libnetcdff.so
>
>
> Any suggestions?
You may want to ask the address@hidden mailing list, because the errors
above have to do with how WRF links its programs to an installed netCDF
library.
If "make check" worked OK for the Fortran tests, then the library was built
correctly.
--Russ
Russ Rew UCAR Unidata Program
address@hidden http://www.unidata.ucar.edu
Ticket Details
===================
Ticket ID: NTO-571747
Department: Support netCDF
Priority: Normal
Status: Closed