cannot open libnetcdff.so.6

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

cannot open libnetcdff.so.6

#1 Unread post by salik »

I am trying to install ROMS on openSUSE 12.3, and have installed the netcdf libraries to /usr/local/lib64, which I have also set as my NETCDF_LIBDIR in Linux-gfortran.mk. Specifically I have set it like this:

Code: Select all

NETCDF_INCDIR = /usr/local/include
NETCDF_LIBDIR = /usr/local/lib64
LIBS := -L$(NETCDF_LIBDIR) -lnetcdff -lnetcdf
I checked /usr/local/lib64 to make sure that libnetcdff.so.6 is there, and my ./build.bash runs without error

Still, when trying to run oceanO I get this message:
./oceanO: error while loading shared libraries: libnetcdff.so.6: cannot open shared object file: No such file or directory
Can anyone help me out here?

EDIT: attached build.bash
Attachments
build.bash
(16.74 KiB) Downloaded 449 times

salik
Posts: 16
Joined: Tue Jan 14, 2014 3:02 pm
Location: Geological Survey of Denmark and Greenland

Re: cannot open libnetcdff.so.6

#2 Unread post by salik »

I made a clean install of netcdf, and it works now.

Post Reply