MET 11.0.0 install error: fatal error: netcdf: No such file or directory #2365
Replies: 2 comments 18 replies
-
Hi Michael (@mdpletcher). Thank you for all of the details in your post.
Thank you for recognizing that the netcdf and netcdf-cxx files must be in the same folder. To explain further, the library files for netcdf-c and netcdf-cxx need to be in the same directory and the include files for netcdf-c and netcdf-cxx need to be in the same directory. So, for example, when installing both libraries you'd want to set the installation location with the --prefix option to the same location (e.g. I hope that helps. We do have a script, which we recommend using, that will compile MET and all of its external library dependencies for you, although I understand that you've already proceeded with installing many of these libraries. You can find information about it on the MET Dowloads Page under "Sample Script For Compiling External Libraries And MET". We are currently working on new installation instructions which will hopefully make the installation process more clear and smooth and plan to have those released in our next official release (MET-12.0.0). Also, you mentioned that you are installing MET-11.0.0. I wanted to be sure to point out that our latest official release is MET-11.1.0, which we would recommend installing over MET-11.0.0, as it came with lots of bugfixes. You can take a look at the release notes for MET-11.1.0 for a closer look at those bugfixes and enhancements, if you'd like, and you can obtain the latest release here. Please let us know if you have any other questions. Please also let us know how the installation goes. |
Beta Was this translation helpful? Give feedback.
-
After looking through all files, I don't see the met.make_test.log file. Here's how I organized my directories for compilation: Main MET folder: "/home/user/software/pkg/miniconda3/met" Within that folder, I have the compile_MET_all.sh and install_met_env.generic files and I've attached the install_met_env.generic. The tar files are located in "/home/user/software/pkg/miniconda3/met/tar_files" and the MET-11.1.0.tar.gz file is located in tar_files. Michael |
Beta Was this translation helpful? Give feedback.
-
I've been attempting to install and compile MET 11.0.0 onto my local directory within a CHPC environment, but I'm having issues with MET finding the netcdf library that I've configured and installed.
MET is located at /home/user/software/pkg/miniconda3/met/MET-11.1.0
I've installed all of the required libraries at /home/user/software/pkg/miniconda3/met/libs and their respective paths are:
/home/user/software/pkg/miniconda3/met/libs/gsl-2.7.1
/home/user/software/pkg/miniconda3/met/libs/hdf5-1.10.10
/home/user/software/pkg/miniconda3/met/libs/NCEPLIBS-bufr-12.0.1
However, since the installation instructions state that the netcdf and netcdf-cxx files must be in the same folder, I created a file named 'netcdf' within the /libs directory that contains both libraries. Here are their respective paths:
/home/user/software/pkg/miniconda3/met/libs/netcdf/netcdf-cxx4-4.3.1
/home/user/software/pkg/miniconda3/met/libs/netcdf/netcdf-c-4.9.2
I'm operating in a .csh environment, so I create environment variables using setenv. I set the netcdf environment variable in the MET-11.1.0 directory (absolute path shown above) using the following command:
setenv MET_NETCDF /home/user/software/pkg/miniconda3/met/libs/netcdf/
Am I setting the environment variable incorrectly?
Thanks,
Michael
Beta Was this translation helpful? Give feedback.
All reactions