nc_var_info.cc:15:10: fatal error: 'netcdf' file not found #2662
-
I have compiled installed NetCDF-C and NetCDF-CXX to compile several packages. However, when I try to compile MET, the package cannot find NetCDF, and I am trying to figure out what I need to do differently. I am using a bash environment. Here are my setup and procedures: MET Version: 11.1.1 Compilers: Intel OneAPI (icx and icpx) Issue: Unable to find NetCDF NetCDF directory: I've read that NetCDF-C and NetCDF-CXX must be in the same directory. In the .bashrc: export MET_NETCDF=/home/wxbinge/work/built_with_intel_2024_old_libs_version_2.1/netcdf I've attached my config.log, config.status, and make log files. Additional Notes: I've also tried including the MET_NETCDFINC and MET_NETCDFLIB paths in the bashrc file, but I am still getting the same error. I've tried to use the CPPFLAGS when setting up the configuration. Any assistance would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It seems the netCDF libraries I am using are too old to compile with MET v11.1.1. I used some newer netCDF builds on my system and got past the error. However, I am now faced with this error: /usr/bin/ld: /home/wxbinge/work/built_with_intel_2024_old_libs_version_2.1/netcdf/lib/libnetcdf_c++4.so: undefined reference to Has MET been tested with Intel OneAPI compilers (icx and icpx)? |
Beta Was this translation helpful? Give feedback.
-
Hi @wxbinge. Thank you for all of the information and the files you included here. Official support in MET for the Intel oneAPI compilers was NOT included in our latest official release, MET-11.1.1, but will be included in our upcoming MET-12.0.0 official release scheduled for December this year. We found that many of the libraries we distributed with our tar file package needed to be updated in order to compile with the oneAPI compilers, so we'll be offering a new set of tar file of dependencies with our upcoming release. Do you have access to the older Intel compilers or the GNU compilers for compiling MET-11.1.1? Are you familiar with our compilation script and tar files that we provide? If not, please take a look at our documentation under "Sample Script for Compiling External Libraries and MET" on our MET Download page if you're interested in using it. Please note, however, that this documentation will be moved to our User's Guide for the MET-12.0.0 release. Regarding your attempted compilation, in your config.log file, I see that LDFLAGS contains the following:
but it does not contain:
where it appears the files are now located. Please let us know if you have any further questions. |
Beta Was this translation helpful? Give feedback.
-
Compiling MET v11.1.1 with Intel OneAPI (2024.1) Compilers: ICX and ICPX ==================================================================USE THESE SETTING WHEN INSTALLING MET v11.1.1 or newer with Intel OneAPI compilers==================================================================----------------->>>> MODULES <<<<-----------------ZLIBexport vZLIB="v1.3.1" LIBPNGexport vLIBPNG="v1.6.43" JPEGexport vJPEG="v9f" JASPERexport vJASPER="v4.2.4" SZIPexport vSZIP="v2.1.1" ZSTDexport vZSTD="v1.5.6" GSLIBexport vGSL="v2.8" ***************** START NCEPLIBS *****************NCEP BUFRLIBexport vBUFRLIB="v12.0.1" NCEP BACIOexport vBACIO="v2.6.0" NCEP W3EMCexport vW3EMC="v2.12.0" NCEP G2export vG2="v3.5.1" NCEP G2Cexport vG2C="v1.9.0" NCEP IPexport vIP="v5.1.0" NCEP SPexport vSP="v2.5.0" NCEP GRIB2 LIBexport vGRIB2LIB="v1.5.0" ***************** END NCEPLIBS *****************CURLexport vCURL="v8.8.0" HDF4export vHDF4="v4.3.0" HDF5export vHDF5="v1.14.4" LIBXMl2export vXML2="v2.9.12" NETCDF-Cexport vNETCDF_C="v4.9.2" NETCDF-CXXexport vNETCDF_CXX="v4.3.1" METexport vMET="v11.1.1" ---------------------------------------------Dynamic Library Paths and Include directories---------------------------------------------export LD_LIBRARY_PATH=$INTELHPC/2024.1:$ZLIB/lib:$LIBPNG/lib:$JPEG/lib:$JASPER/lib:$SZIP/lib:$ZSTD/lib:$CURL/lib:$GSL_PATH/lib:$XML2/lib:$HDF4/lib:$iHDF5/lib:$UTIL/netcdf/lib:$BUFRLIB/lib:$LD_LIBRARY_PATH ======================================================CONFIGURING LIBRARIES AND DEPENDENCIES======================================================############## ZLIB############## ############## LIBPNG############## ############## SZIP############## ############## JPEG############## ############## JASPER############## cmake --build $UTIL/SOURCE/MET/build cd $UTIL/SOURCE/MET/build ctest --output-on-failure cmake --build $UTIL/SOURCE/MET/build --target install ############## CURL############## ############## XML2############## ############## GSL############## ############## NCEP BUFRLIB############## ############## NCEP BACIO############## ############## NCEP IP############## ############## NCEP SP############## ############## NCEP W3EMC############## ############## NCEPLIB G2############## Dependencies: LIBPNG, JASPER, JPEG, NCEP-BACIO, NCEP-W3EMCcmake .. -DCMAKE_INSTALL_PREFIX=$G2_PATH -DCMAKE_PREFIX_PATH="${JPEG_LIBRARY};${JPEG_INCLUDE_DIR};${JASPERLIB};${JASPERINC};${BACIO};${W3EMC}" ############## NCEPLIB G2C############## Dependencies: JASPER, JPEGcmake .. -DCMAKE_INSTALL_PREFIX=$G2C_PATH -DCMAKE_PREFIX_PATH="${JPEG_LIBRARY};${JPEG_INCLUDE_DIR};${JASPERLIB};${JASPERINC}" ############################### NCEP GRIB2LIB AND UTILITIES############################### Dependencies: LIBPNG, JASPER, JPEG, NCEP-BACIO, NCEP-IP, NCEP-SP, NCEP-W3EMCcmake .. -DCMAKE_INSTALL_PREFIX=$GRIB2LIB -DCMAKE_PREFIX_PATH="${JPEG_LIBRARY};${JPEG_INCLUDE_DIR};${JASPERLIB};${JASPERINC};${BACIO};${IP_PATH};${SP_PATH};${W3EMC};${G2_PATH}" ############## HDF4############## ############## HDF5############## ############## NETCDF-C############## ############## NETCDF-CXX############## ############## MET v11.1.1############## |
Beta Was this translation helpful? Give feedback.
Hi @wxbinge.
Thank you for all of the information and the files you included here. Official support in MET for the Intel oneAPI compilers was NOT included in our latest official release, MET-11.1.1, but will be included in our upcoming MET-12.0.0 official release scheduled for December this year. We found that many of the libraries we distributed with our tar file package needed to be updated in order to compile with the oneAPI compilers, so we'll be offering a new set of tar file of dependencies with our upcoming release.
Do you have access to the older Intel compilers or the GNU compilers for compiling MET-11.1.1? Are you familiar with our compilation script and tar files that we provid…