CCSM error while execution

ruk15@psu_edu

New Member
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 directoryMy 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) -lnetcdffwhere $LIB_NETCDF = ~/work/local/libThanksRavi
 

ruk15@psu_edu

New Member
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/includeexport LDFLAGS=-L/gpfs/home/ruk15/work/local/lib
 

ruk15@psu_edu

New Member
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  
 
Back
Top