I have problem on running ROMS on upwelling case.
The build seems to be done well. But, If I submit my job, it failes showing
'/oceanS: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory'
I am beginner so I need your kind comments on this problem.
compile error
Re: compile error
When linking with the shared NetCDF library, the link statement contains the path to the library. At run time, this path also needs to be set in an environment variable called LD_LIBRARY_PATH (something similar but different if you are on a Mac). The LD_LIBRARY_PATH is a list of directories with shared libraries, separated by colons. Mine is:
Code: Select all
pacman6 291% printenv LD_LIBRARY_PATH
/usr/local/pkg/proj/proj-4.8.0.gnu-4.7.3/lib:/usr/local/pkg/geos/geos-3.3.8.gnu-4.7.3/lib:/usr/local/pkg/gdal/gdal-1.10.0.gnu-4.7.3/lib:/usr/local/pkg/netcdf/netcdf-4.3.0.pgi-13.4/lib:/usr/local/pkg/openmpi/openmpi-1.4.3.pgi-13.4/lib:/usr/local/pkg/pgi/pgi-13.4/linux86-64/13.4/lib:/usr/local/pkg/pgi/pgi-13.4/linux86-64/13.4/libso:/usr/local/pkg/openmpi/openmpi-1.4.3.gnu-4.7.3/lib:/usr/local/pkg/gcc/gcc-4.7.3/lib:/usr/local/pkg/gcc/gcc-4.7.3/lib64:/usr/local/pkg/python/python-2.7.4/lib:/u1/uaf/kate/lib:/u1/uaf/kate/Python/lib:/usr/local/pkg/gcc/gcc-4.5.1/lib:/usr/local/pkg/gcc/gcc-4.5.1/lib64:/usr/local/pgi/lib:/usr/local/lib
Re: compile error
Thank you for your kind comment. I did as you told but I have still same error.kate wrote:When linking with the shared NetCDF library, the link statement contains the path to the library. At run time, this path also needs to be set in an environment variable called LD_LIBRARY_PATH (something similar but different if you are on a Mac). The LD_LIBRARY_PATH is a list of directories with shared libraries, separated by colons. Mine is:Code: Select all
pacman6 291% printenv LD_LIBRARY_PATH /usr/local/pkg/proj/proj-4.8.0.gnu-4.7.3/lib:/usr/local/pkg/geos/geos-3.3.8.gnu-4.7.3/lib:/usr/local/pkg/gdal/gdal-1.10.0.gnu-4.7.3/lib:/usr/local/pkg/netcdf/netcdf-4.3.0.pgi-13.4/lib:/usr/local/pkg/openmpi/openmpi-1.4.3.pgi-13.4/lib:/usr/local/pkg/pgi/pgi-13.4/linux86-64/13.4/lib:/usr/local/pkg/pgi/pgi-13.4/linux86-64/13.4/libso:/usr/local/pkg/openmpi/openmpi-1.4.3.gnu-4.7.3/lib:/usr/local/pkg/gcc/gcc-4.7.3/lib:/usr/local/pkg/gcc/gcc-4.7.3/lib64:/usr/local/pkg/python/python-2.7.4/lib:/u1/uaf/kate/lib:/u1/uaf/kate/Python/lib:/usr/local/pkg/gcc/gcc-4.5.1/lib:/usr/local/pkg/gcc/gcc-4.5.1/lib64:/usr/local/pgi/lib:/usr/local/lib
Below is my LD_LIBRARY_PATH
/home/software/intel/composer_xe_2011_sp1.8.273/compiler/lib/intel64:/home/software/intel/
composer_xe_2011_sp1.8.273/ipp/../compiler/lib/intel64:/home/software/intel/composer_xe_201
1_sp1.8.273/ipp/lib/intel64:/home/software/intel/composer_xe_2011_sp1.8.273/compiler/lib/in
tel64:/home/software/intel/composer_xe_2011_sp1.8.273/mkl/lib/intel64:/home/software/intel/
composer_xe_2011_sp1.8.273/tbb/lib/intel64//cc4.1.0_libc2.4_kernel2.6.16.21:/opt/shared/
openmpi/1.4.4-
intel64/lib:/home/software/intel/composer_xe_2011_sp1.8.273/debugger/lib/intel64:/home/soft
ware/intel/composer_xe_2011_sp1.8.273/mpirt/lib/intel64=:/opt/shared/netcdf/intel64=:/opt/
shared/netcdf/intel64/include=:/opt/shared/netcdf/intel64/lib=:/opt/shared/netcdf/4.1.3-
intel64=:/opt/shared/netcdf/4.1.3-intel64/include=:/opt/shared/netcdf/4.1.3-
intel64/lib=:/home/software/netcdf/4.1.3-intel64=:/home/software/netcdf/4.1.3-
intel64/include=:/home/software/netcdf/4.1.3-intel64/lib
I solved this problem by adding
LD_LIBRARY_PATH=/....
export LD_LIBRARY_PATH
to .bashrc file located in my home directory. Thank you~