Shared libraries error: libnetcdff.so.5

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Shared libraries error: libnetcdff.so.5

#1 Unread post by Xegone »

Hello,

When running a programme, I get the following error right away:

~/ROMS-Tidal-Array.git/trunk/cases$ ./oceanM < ocean_validation.in
./oceanM: error while loading shared libraries: libnetcdff.so.5: cannot open shared object file: No such file or directory

I have read other posts where people had the same output error, and their solution was typing two lines to define the path to the "libnetcdff.so.5" file. In my case, the issue is that no file named "libnetcdff.so.5" appears in my folders. The most similar ones are "libnetcdff.so", "libnetcdff.so.7" and "libnetcdff.so.7.0.0". My guess is that the programme was written in an older ROMS version (as it is at least 4 years old) and that I should find a way to change the shared object the programme is looking for or install a package with "libnetcdff.so.5" on it, but I am a complete beginner so wanted to ask it.

Any ideas of how to fix it?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Shared libraries error: libnetcdff.so.5

#2 Unread post by kate »

Is it possible for you to recompile the program so that it uses the new library instead of the old library? It is assumed that you will be compiling this code to avoid these problems.

Xegone
Posts: 8
Joined: Mon Jun 01, 2020 12:49 am
Location: University of Plymouth

Re: Shared libraries error: libnetcdff.so.5

#3 Unread post by Xegone »

i am having some trouble compiling it, but I will try it. Thanks for your answer

Post Reply