WRF v4.0 Configuration NETCDF Error

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.

asyed6

New member
Hi I am new to WRF and following the online tutorial step by step for installing it on my core i7 laptop with Ubuntu 18.04. Upon running the ./configure while configuring WRF; the step before compilation; I have been facing this error repeatedly:
Code:
NETCDF4 IO features are requested, but this installation of NetCDF           
  /home/abdul/Build_WRF/LIBRARIES/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 !!!

How can I resolve this issue?
 
Can you try the following commands (in csh): setenv NETCDF_classic 1, or (in bash): export NETCDF_classic=1
Then rebuild WRF?
 
Thanks for your reply. So, i was getting the same error repeatedly on WRF 4.0 but when I changed it to WRF 3.8.1, it configured with success. I don't know where is the problem but now i will use V 3.8.1.
 
I'm having the same error, but only when I compile with pnetcd, because It didn't appear in my last installation of WRF 4.1 without it.
I've installed:
HDF5 1.10.5: ./configure --prefix=${LIBBASE} --enable-parallel --with-zlib=${LIBBASE} --enable-fortran --enable-shared
PNETCDF 1.9.0: (newest pnetcdf have a bug with netcdf fortran): ./configure --prefix=${LIBBASE}
Netcdf-c 4.7.0: ./configure --prefix=${LIBBASE} --disable-shared --enable-parallel-tests --enable-netcdf4 --enable-pnetcdf --disable-filter-testing
Netcdf-fortran 4.4.4: ./configure --prefix=${LIBBASE} --enable-parallel-tests --disable-shared

All compiled with Intel 2019.4 and checked ok.

Code:
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF           
  /home/wrf/wrf_io
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 !!!

*****************************************************************************

Any thoughts?
Thank you

Agu
 
Hi Agu,
I have not tried to build netcdf-c and netcdf-fortran separately. I've only built it as a single unit, so I'm not sure about this thought, but should you need to perhaps set --enable-netcdf4 during the netcdf-fortran configuration, as well?
 
Hi,
I am running into the same issues.

In the current netcdf-fortran or netcdf-c, " --enable-netcdf4" is not recognized, since it is default (replaced by a "--disable netcdf-4" now).

--- My status now:
I built netcdf-c and netcdf-fortran (v4.7.3 and 4.5.2), nc-config tells me:
--has-nc2 -> yes
--has-nc4 -> yes
--has-hdf5 -> yes
--has-hdf4 -> no

nf-config:
--has-nc2 -> yes
--has-nc4 -> yes

Still, WRF 4.1.4 ./configure returns:
Code:
NETCDF4 IO features are requested, but this installation of NetCDF           
  /raid60/raid/home/srvx7/lehre/users/a1254888/Build_WRF/intel_srvx2_compiled/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 !!!

Note: I created a netcdf directory with bin, lib, include folders and linked the contents of the respective C/Fortran folders in there, so that WRF should be able to handle it.

I would be grateful for any suggestions!

Lukas
 
Hi Lukas,
Do you need to use the netcdf-4 options (like compression)? Most people do not need this unless they are planning to run very large simulations. If you don't need it, can you just set:
export NETCDF_classic=1, or
setenv NETCDF_classic 1
and try again?
 
Back
Top