Sublime Forum

Error while loading shared libraries

#1

Hello,

I am trying to run a fortran script in sublime, but I receive the error code:

error while loading shared libraries: libnetcdff.so.6: cannot open shared object file: No such file or directory

The netcdf library is installed properly, and I have linked it properly in the makefile. If I run the program over the terminal, everything works fine. Also the program runs just fine in sublime without the library.

Do you have any idea, what the problem could be?
I have already additionaly exported the path to the library destination in my bash, without success.

Thanks in advance!

P.S:
My build system consists out of a make command followed by
mpirun -np 2 “program”

0 Likes

#2

you have configured the correct path for it

0 Likes

#3

Yes,
It is also working if I run it in the terminal, which shows that my makefile with the path is correct.
The problem is reproducable on different laptops, where I have installed the library in different paths.

Other libraries like opneblas are working fine

0 Likes