Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

NETCDF ERROR when configuring WRF V4.0

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.


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
DOES NOT support these IO features.

Please make sure NETCDF version is 4.1.3 or later and was built with

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/ 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.



  • configure.output.txt
    9.5 KB · Views: 72
  • compile.log.20190807.txt
    968.3 KB · Views: 65
If you are not using the compression features in Netcdf-4, then you do not need to have environment variables set for HDF5. If you have an environment variable HDF5 set, please unset that. You may also need to modify your LD_LIBRARY_PATH to not include HDF5 information. After you do that, you can try to clean, reconfigure, and recompile again.