Main menu

Navigation

CCSM error while execution

6 posts / 0 new
Last post
ruk15@...
CCSM error while execution

Hello,

When executing the model using  PBS, I got the following error:

/ccsm.exe: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory

My guess is that this arises because I installed NetCDF as shared libraries. Apart from reinstalling NetCDF as static, is there a way I can solve this with shared configuration ?

My 'Macros' file has this : SLIBS += -L$(LIB_NETCDF) -lnetcdff

where $LIB_NETCDF = ~/work/local/lib

Thanks

Ravi

jedwards

I suspect that you need to have LD_LIBRARY_PATH=~/work/local/lib:$LD_LIBRARY_PATH

CESM Software Engineer

ruk15@...

Thanks. Should I include it as an environment variable ? or in Macros file?

ruk15@...

Actually, I set LD_LIBRARY_PATH while installing NetCDF. Here it is. Do I need to do it again before executing the model ?

export LD_LIBRARY_PATH=/gpfs/home/ruk15/work/local/lib:${LD_LIBRARY_PATH}

export CPPFLAGS=-I/gpfs/home/ruk15/work/local/include

export LDFLAGS=-L/gpfs/home/ruk15/work/local/lib

ruk15@...

ok, I solved that problem. As you said, it is the LD_LIBRARY_PATH which I set in my .bashrc as follows:

export LD_LIBRARY_PATH=~/work/local/lib

 

This points to the /lib sub-directory of the NetCDF directory (for me it is '~/work/local') where libnetcdff.so exists.

 

Now I get:

orterun: error while loading shared libraries: libimf.so: cannot open shared object file: No such file or directory

 

 

jedwards

At this point you should make sure that you can run a basic mpi hello world program. 

CESM Software Engineer

Log in or register to post comments

Who's new

  • lwheele@...
  • afroberts@...
  • richard.allard@...
  • tracy@...
  • 498749303@...