jigar
jigar

Reputation: 45

Error while loading shared library : librun.so

I have a compiled script (it's some utility) and the source code of which is unavailable. As soon as I run the script this error shows up:

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

I have faced these kind of errors in past which had different solutions. I tried all as per my knowledge and..

  1. librun.so is there in lib folder of my application
  2. It is symbolic link and pointing to correct version
  3. librun.so is available in path variable
  4. changed .profile to look for the required library
  5. changed permissions and checked
  6. "which librun.so" is also returning the presence of that library

still this error shows up. What can be the reason for this problem?

Upvotes: 0

Views: 1059

Answers (1)

jotik
jotik

Reputation: 17900

The dynamic linker is unable to find librun.so during runtime linking of shared libraries. Try adding the path of directory containing librun.so to the LD_LIBRARY_PATH environment variable when starting the application script.

Upvotes: 1

Related Questions