Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Error at runtime, libnetcdf, cesm 1.2.2

I'm working on porting CESM 1.2.2.  The model builds without errors, but when I try to run the model I get this error:"cesm.exe: error while loading shared libraries: libnetcdf.so.11: cannot open shared object file: No such file or directory" The file libnetcdf.so.11 is in /usr/lib64/lib/The netcdf files are in /usr/lib64/lib and /usr/lib64/includeI set NETCDF_PATH= /usr/lib64/ in my Macros file. Any ideas on how to solve this?
 

jedwards

CSEG and Liaisons
Staff member
older versions of cesm do not understand shared libraries, you need to have libnetcdf.a and libnetcdff.aYou may be able to use shared libraries with the right combination of flags in LDFLAGS something like LDFLAGS="-Wl,-rpath,/usr/lib64/lib/" might work.
 

jedwards

CSEG and Liaisons
Staff member
Is it possilble that it's trying to use shared libraries but that those libraries are not available on the compute nodes?That is if you use shared libraries in /usr/lib64/lib those paths and libraries must be present on all of the nodes not just the one you build on.
 
Yes, I solved it, you can find more details in previous posts.  In short, the compute nodes did not have access to the necessary files, so my system administrator had to make changes allowing the nodes to find the files.
 
Top