-
Notifications
You must be signed in to change notification settings - Fork 686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WRF v4.0.1 configuration warning about NETCDF #794
Comments
@zhihua-zheng Try to set environment variable NETCDF_classic as suggested by the message before you run configure again. In the future, this should be posted to WRF Forum at http://forum.mmm.ucar.edu. Thanks. |
@weiwangncar |
I've also run into problems when the netCDF-4 library is build with support for parallel I/O via HDF5. If we were to significantly overhaul the logic in the configure script for detecting netCDF libraries, we could also consider the potential need to add It might also be worth trying to leverage the output of |
FYI, EasyBuild has a patch to separate NetCDF C and Fortran directories: https://github.com/easybuilders/easybuild-easyconfigs/blob/master/easybuild/easyconfigs/w/WRF/WRF-3.5_netCDF-Fortran_separate_path.patch |
I had the same problem, with WRF master branch. |
Just chiming in as I ran into this issue this morning with WRF-4.1.1. netcdf-c and netcdf-fortran by default install libraries to A pedantic nit-pick: If the NetCDF4 warning doesn't allow the configure to complete (i.e. "configure.wrf has been removed"), it should be called an error. |
We had the same issue on a Debian install because we wanted to use the libnetcdf-dev package from the package manager. The problem is that the installer puts the libnetcdf.so library in |
NETCDF4 IO features are requested, but this installation of NetCDF Please make sure NETCDF version is 4.1.3 or later and was built with OR set NETCDF_classic variable Then re-run this configure script !!! configure.wrf has been REMOVED !!I am very new to WRF and Ubuntu. I tried to understand the replies but failed. Can anybody tell me how to solve this with an example (command lines)? |
@razib911 Second, please take a look at the WRF forum web page: forum.mmm.ucar.edu. That site is specifically set up for user questions. The github site is more for source code bugs. Third, repost this question on the WRF Forum. Fourth, did you perhaps try to set the environment variables as suggested? Do not answer here, but include all of this information in the post to the forum. This allows others with a similar problem to search to see the solution. |
I would also very much appreciate WRF not assuming that libraries are in a sub-directory of a NETCDFPATH (or HDF5PATH or whatever) called "lib". We need to be able to specify the library directory directly. OpenHPC for example uses the following environment variables:
I would suggest using those variable names for looking for items. |
@opoplawski |
@razib911 |
Possibly - I'll see if I can scrape together some time. |
@opoplawski Where there are differences with the bug fix and the new feature (develop branch), use the develop branch options. |
From what I can observe, the specific thing causing the problem is lines 178-203 of the configure script. If the USENETCDFF=""
USENETCDF=""
if [ -n "$NETCDF" ] ; then
echo "Will use NETCDF in dir: $NETCDF"
# Oh UNIDATA, why make it so hard ...
if [ -f "$NETCDF/lib/libnetcdff.a" -o -f "$NETCDF/lib/libnetcdff.so" -o -f "$NETCDF/lib/libnetcdff.dll.a" ] ; then
USENETCDFF="-lnetcdff"
else
USENETCDFF=" "
fi
if [ -f "$NETCDF/lib/libnetcdf.a" -o -f "$NETCDF/lib/libnetcdf.so" -o -f "$NETCDF/lib/libnetcdf.dll.a" ] ; then
USENETCDF="-lnetcdf"
else
USENETCDF=" "
fi
export USENETCDF=$USENETCDF
export USENETCDFF=$USENETCDFF
else
echo ' '
echo '*****************************************************************************'
echo 'No environment variable NETCDF set.'
echo 'Stopping'
echo '*****************************************************************************'
echo ' '
exit 6
fi |
I need help. This error message appears when installing WRF_4.1 in my ubunu 22.04. Please make sure NETCDF version is 4.1.3 or later and was built with OR set NETCDF_classic variable Then re-run this configure script !!! configure.wrf has been REMOVED !!! |
Hello
Please use one of the following:
bash/ksh : export NETCDF_classic=1
echo csh : setenv NETCDF_classic 1
Then re-configure wrf.
Problem is in the netCDF installation or configuration. If you set this classic=1, you will not see this error.
regards
Razib
PhD Candidate
University of Quebec in Montreal
Montreal, Canada
…________________________________
From: zemboy ***@***.***>
Sent: Thursday, March 16, 2023 1:30:29 PM
To: wrf-model/WRF ***@***.***>
Cc: Vhuiyan, Md Razib ***@***.***>; Mention ***@***.***>
Subject: Re: [wrf-model/WRF] WRF v4.0.1 configuration warning about NETCDF (#794)
I need help. This error message appears when installing WRF_4.1 in my ubunu 22.04.
************************** W A R N I N G ************************************
NETCDF4 IO features are requested, but this installation of NetCDF
/usr
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 !!!
________________________________
—
Reply to this email directly, view it on GitHub<#794 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/APOMTKHZETJ7OHHTKGL3HRLW4NE3LANCNFSM4G2MIU6A>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Hello Thank you very much for your help. |
@zemboy It should be in your working terminal. This message and further discussion should be posted in Forum: https://forum.mmm.ucar.edu/. |
I have netcdf-c and netcdf-fortran built with nc4 support, but in different directories. With my variable NETCDF was initially set as the path to netcdf-fortran, the configuration of WRF returned a warning message:
What I did to resolve this is to make links for netcdf-c and netcdf-fortran, then put them together according to the /lib, /include, /bin structure, and update the variable NETCDF as the path to the new directory.
The text was updated successfully, but these errors were encountered: