Unable to load libsctp.so for non root user

Posted by sankoz on Stack Overflow See other posts from Stack Overflow or by sankoz
Published on 2010-04-01T10:35:44Z Indexed on 2010/04/01 10:43 UTC
Read the original article Hit count: 558

Filed under:
|
|

I have a Linux application that uses the libsctp.so library. When I run it as root, it runs fine.

But when I run it as an ordinary user, it gives the following error:

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

But, when I do ldd as ordinary user, it is able to see the library:

[sanjeev@devtest6 src]$ ldd myapp

  ...
   ...
  libsctp.so.1 => /usr/local/lib/libsctp.so.1 (0x00d17000)

[sanjeev@devtest6 src]$ ls -lL /usr/local/lib/libsctp.so.1

-rwxrwxrwx 1 root root 27430 2009-06-29 11:26 /usr/local/lib/libsctp.so.1

[sanjeev@devtest6 src]$

What could be wrong? How is the ldd is able to find libsctp.so, but when actually running the app, it is not able to find the same library?

© Stack Overflow or respective owner

Related posts about linux

Related posts about c