Dear WRF Community,
I have met a problem with netcdf library. When configuaring WRF V4.0, I have met an error as follows (after typing ./configure and select serial/GNU option):
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/usr/local/lib/netcdf
DOES NOT support these IO features.
Please make sure NETCDF version is 4.1.3 or later and was built with
--enable-netcdf4
OR set NETCDF_classic variable
bash/ksh : export NETCDF_classic=1
echo csh : setenv NETCDF_classic 1
Then re-run this configure script
!!! configure.wrf has been REMOVED !!!
*****************************************************************************
After adding export NETCDF_classic=1 into ~/.bashrc and source to active it, I tried to clean, reconfigure and make. Another error prompted:
time gfortran -o ndown.exe -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 ndown_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/lsl/WRF/WRF/external/fftpack/fftpack5/libfftpack.a /home/lsl/WRF/WRF/external/io_grib1/libio_grib1.a /home/lsl/WRF/WRF/external/io_grib_share/libio_grib_share.a /home/lsl/WRF/WRF/external/io_int/libwrfio_int.a -L/home/lsl/WRF/WRF/external/esmf_time_f90 -lesmf_time /home/lsl/WRF/WRF/external/RSL_LITE/librsl_lite.a /home/lsl/WRF/WRF/frame/module_internal_header_util.o /home/lsl/WRF/WRF/frame/pack_utils.o -L/home/lsl/WRF/WRF/external/io_netcdf -lwrfio_nf -L/usr/local/lib/netcdf/lib -lnetcdff -lnetcdf -L/usr/local/lib/hdf5-1.10.4/lib -lhdf5_fortran -lhdf5 -lm -lz
/usr/bin/ld: /usr/local/lib/netcdf/lib/libnetcdf.a(libnetcdf4_la-nc4hdf.o): undefined reference to symbol 'H5DSattach_scale'
/usr/local/lib/hdf5-1.10.4/lib/libhdf5_hl.so.100: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
Any indications? Thanks.
LSL
I have met a problem with netcdf library. When configuaring WRF V4.0, I have met an error as follows (after typing ./configure and select serial/GNU option):
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/usr/local/lib/netcdf
DOES NOT support these IO features.
Please make sure NETCDF version is 4.1.3 or later and was built with
--enable-netcdf4
OR set NETCDF_classic variable
bash/ksh : export NETCDF_classic=1
echo csh : setenv NETCDF_classic 1
Then re-run this configure script
!!! configure.wrf has been REMOVED !!!
*****************************************************************************
After adding export NETCDF_classic=1 into ~/.bashrc and source to active it, I tried to clean, reconfigure and make. Another error prompted:
time gfortran -o ndown.exe -O2 -ftree-vectorize -funroll-loops -w -ffree-form -ffree-line-length-none -fconvert=big-endian -frecord-marker=4 ndown_em.o ../dyn_em/module_initialize_real.o libwrflib.a /home/lsl/WRF/WRF/external/fftpack/fftpack5/libfftpack.a /home/lsl/WRF/WRF/external/io_grib1/libio_grib1.a /home/lsl/WRF/WRF/external/io_grib_share/libio_grib_share.a /home/lsl/WRF/WRF/external/io_int/libwrfio_int.a -L/home/lsl/WRF/WRF/external/esmf_time_f90 -lesmf_time /home/lsl/WRF/WRF/external/RSL_LITE/librsl_lite.a /home/lsl/WRF/WRF/frame/module_internal_header_util.o /home/lsl/WRF/WRF/frame/pack_utils.o -L/home/lsl/WRF/WRF/external/io_netcdf -lwrfio_nf -L/usr/local/lib/netcdf/lib -lnetcdff -lnetcdf -L/usr/local/lib/hdf5-1.10.4/lib -lhdf5_fortran -lhdf5 -lm -lz
/usr/bin/ld: /usr/local/lib/netcdf/lib/libnetcdf.a(libnetcdf4_la-nc4hdf.o): undefined reference to symbol 'H5DSattach_scale'
/usr/local/lib/hdf5-1.10.4/lib/libhdf5_hl.so.100: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Command exited with non-zero status 1
Any indications? Thanks.
LSL