Main menu

Navigation

Error at runtime, libnetcdf, cesm 1.2.2

8 posts / 0 new
Last post
brian.thomas@...
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/include

I set NETCDF_PATH= /usr/lib64/ in my Macros file.

 

Any ideas on how to solve this?

Brian C. Thomas
Professor of Physics and Astronomy
Washburn University, Topeka, KS

jedwards

older versions of cesm do not understand shared libraries, you need to have libnetcdf.a and libnetcdff.a

You 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.

CESM Software Engineer

brian.thomas@...

The .a files do exist there:

/usr/lib64/lib/libnetcdf.a

/usr/lib64/lib/libnetcdff.a

Is it getting confused because there are shared libraries in that same directory?

Brian C. Thomas
Professor of Physics and Astronomy
Washburn University, Topeka, KS

jedwards

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.

CESM Software Engineer

brian.thomas@...

It looks like that might be the problem.  My sysadmin is looking at it now.  I'll update this thread with the result.  Thank you!

Brian C. Thomas
Professor of Physics and Astronomy
Washburn University, Topeka, KS

brian.thomas@...

That did solve the problem, thanks very much for your help tracking this down.

Brian C. Thomas
Professor of Physics and Astronomy
Washburn University, Topeka, KS

shanru@...

Hey Dr C.Thomas,

    I got the same error as you before, how did you solve it?  

    

all are past and gone,truly great men at present.

brian.thomas@...

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.

Brian C. Thomas
Professor of Physics and Astronomy
Washburn University, Topeka, KS

Log in or register to post comments

Who's new

  • siyuan
  • yuenai@...
  • petisascom@...
  • xiaoning.wu.1@...
  • nburls@...