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

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  
 

jedwards

CSEG and Liaisons
Staff member
At this point you should make sure that you can run a basic mpi hello world program. 
 
Top