[Wrf-users] Netcdf problem

Dmitry N. Mikushin maemarcus at gmail.com
Thu Jan 19 11:40:58 MST 2012


Hi,

Actually libimf, libsvml and libintlc are libraries distributed
together with Intel Compiler. So, you should look for them in your
Intel Compiler distribution, and set proper path for dynamic load, for
example:

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/intel/stuff

Also this tells that your netCDF was compiled by Intel, that is the
default: if netCDF configure script is able to find Intel Compiler,
than it is used as a first priority. Is it intentional for you?

And regarding other errors about missing functions you should check
the Fortran name mangling rule: make sure netCDF library really
provides names with "_" in the end (the default for Fortran). Example:

$ nm <netcdf_library_name> | grep nf_open_
$ nm <netcdf_library_name> | grep nf_open

My guess is library contains functions without "_" by some reason.

HTH,
- Dima.

2012/1/19 Bart Brashers <bbrashers at environcorp.com>:
> Try the following, as root:
>
>
>
> # yum search libimf
>
> # yum search libsvml
>
> # yum search libintlc
>
>
>
> If you find some package that provides those libraries, you can “yum install
> <package_name>” returned by the search.
>
>
>
> Did you perhaps install a pre-compiled version of NetCDF?  It’s important
> (easiest) to use the same compiler for all components of WRF.
>
>
>
> Bart
>
>
>
> From: wrf-users-bounces at ucar.edu [mailto:wrf-users-bounces at ucar.edu] On
> Behalf Of Ehsan Beigi
> Sent: Tuesday, January 17, 2012 9:59 PM
> To: wrfhelp; wrf-users at ucar.edu
> Subject: [Wrf-users] Netcdf problem
>
>
>
> Dear Sir/Madam,
>
> as you know , WRF is the most important library for WRF. I am trying to
> install netcdf on Redhat 6 (2.6.32-220.2.1.el6.x86_64) and , i think there
> is problem withing intel fortran compiler and netcdf interface, because i
> got below error message: how could i solve this problem, any help will be
> appreciated in advance
>
> Compiler configuration problem encountered.  Compiler cannot load imf
> dispatching library.
> ld: warning: libimf.so, needed by /usr/local/lib/libnetcdf.so, not found
> (try using -rpath or -rpath-link)
> ld: warning: libsvml.so, needed by /usr/local/lib/libnetcdf.so, not found
> (try using -rpath or -rpath-link)
> ld: warning: libintlc.so.5, needed by /usr/local/lib/libnetcdf.so, not found
> (try using -rpath or -rpath-link)
> CAM_netcdf_to_WRF_intermediate_EHS.o: In function
> `read_netcdf_cam_and_clm_files_':
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x760b): undefined reference
> to `nf_open_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x767e): undefined reference
> to `nf_inq_varid_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x76a0): undefined reference
> to `nf_inq_varid_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x76c2): undefined reference
> to `nf_inq_varid_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x76e4): undefined reference
> to `nf_inq_varid_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x7706): undefined reference
> to `nf_inq_varid_'
> CAM_netcdf_to_WRF_intermediate_EHS.o:CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x7728):
> more undefined references to `nf_inq_varid_' follow
> CAM_netcdf_to_WRF_intermediate_EHS.o: In function
> `read_netcdf_cam_and_clm_files_':
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x7db9): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x7de3): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x7fe9): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x8019): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x813e): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x8168): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x836e): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x839e): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x876d): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x8806): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x89f0): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x8a59): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x91d7): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x926e): undefined reference
> to `nf_inq_attlen_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x9455): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x94bd): undefined reference
> to `nf_get_att_text_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xa31a): undefined reference
> to `nf_get_var_double_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xa3c3): undefined reference
> to `nf_get_var_double_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xa614): undefined reference
> to `nf_get_var_real_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xb17f): undefined reference
> to `nf_get_var_real_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xd4a7): undefined reference
> to `nf_get_var_double_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xd4c6): undefined reference
> to `nf_get_var_double_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xd4e2): undefined reference
> to `nf_get_var_double_'
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0xe741): undefined reference
> to `nf_close_'
> CAM_netcdf_to_WRF_intermediate_EHS.o: In function `handle_err_':
> CAM_netcdf_to_WRF_intermediate_EHS.f90:(.text+0x11007): undefined reference
> to `nf_strerror_'
> ./Runit: line 4: ./a.out: No such file or directory
>
>
> --
> Ehsan Beigi
> PhD Student
> Department of Civil and and Environmental Engineering
> 2408 Patrick F. Taylor Hall
> Louisiana State University
> Baton Rouge, LA, 70803
>
>
> ________________________________
> This message contains information that may be confidential, privileged or
> otherwise protected by law from disclosure. It is intended for the exclusive
> use of the Addressee(s). Unless you are the addressee or authorized agent of
> the addressee, you may not review, copy, distribute or disclose to anyone
> the message or any information contained within. If you have received this
> message in error, please contact the sender by electronic reply to
> email at environcorp.com and immediately delete all copies of the message.
>
> _______________________________________________
> Wrf-users mailing list
> Wrf-users at ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/wrf-users
>


More information about the Wrf-users mailing list