[RegCNET] NetCDF not found when configure RegCM 4.3
Wang, Jiali
jialiwang at anl.gov
Tue Sep 18 15:58:22 CEST 2012
Hi, All,
I can successfully install RegCM 4.1, but I can not configure any version of RegCM 4.3.
My shell environment is Bash, and my .bashrc file related to RegCM is like this:
=================================================
#NETCDF
export NETCDF=/soft/netcdf/4.0.1-pgi-9
export NETCDF_INC=$NETCDF/include
export NETCDF_LIB=$NETCDF/lib
export PATH=$NETCDF/bin:${PATH}
#RegCM
#export REGCM_ROOT=/home/jialiwang/RegCM4...(I don't think I need this)
export CC=gcc export FC=pgf90
export CPPFLAGS=-I/soft/mvapich2/1.6.0-pgi-9.0/include
export MPI=/soft/mvapich2/1.6.0-pgi-9.0 export PATH=$MPI/bin:${PATH}
export LD_LIBRARY_PATH=$NETCDF/lib
export LD_LIBRARY_PATH=$MPI/lib:$LD_LIBRARY_PATH
=====================================================
I can run WRF smoothly under this environment, but I can not configure RegCM 4.3.
When I configure with command "./configure" only, it said:
==================================
configure: checking for NetCDF...
configure: checking for netcdf.h...
checking netcdf.h usability... no
checking netcdf.h presence... no
checking for netcdf.h... no
configure: error: NetCDF include not found
==================================
However, when I configure with command "./configure --with-netcdf=/soft/netcdf/4.0.1-pgi-9", it said:
=================================================
checking for nc_close in -lnetcdf... no
configure: checking if we need to link jpeg library for HDF4...
checking for nc_enddef in -lnetcdf... no
configure: checking if we need to link hdf5 library...
checking for nc_sync in -lnetcdf... no
configure: checking if we need to link szlib library...
checking for nc_inq_libvers in -lnetcdf... no
configure: error: NetCDF library not found
=================================================
Would you have some comments/suggestions on this? Any advice will be appreciated.
Thanks a lot,
Jiali
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ictp.it/pipermail/regcnet/attachments/20120918/79bf203f/attachment.htm>
More information about the RegCNET
mailing list