Aftnix
Aftnix

Reputation: 4599

shared library loading

My app shows that that dynamic linking is ok.

[root@centos udpfltr_fork]# ldd udpfltr
    linux-gate.so.1 =>  (0x00dbe000)
    libnfnetlink.so.0 => /usr/lib/libnfnetlink.so.0 (0x005de000)
    libnetfilter_queue.so.1 => /usr/lib/libnetfilter_queue.so.1 (0x004a5000)
    libnglogc.so.0 => /usr/lib/libnglogc.so.0 (0x00a51000)
    libc.so.6 => /lib/libc.so.6 (0x001b9000)
    /lib/ld-linux.so.2 (0x0019a000)

but when its invoked it stops with following error:

./udpfltr: error while loading shared libraries: libnglogc.so.0: cannot open shared object file: No such file or directory

I'm clueless about what's actually happening. I've tried with setting $LD_LIBRARY_PATH, reloading ldcache by ldconfig etc.

Upvotes: 2

Views: 1113

Answers (1)

Jitender
Jitender

Reputation: 1

This might be the reason:- 1)check $LD_LIBRARY_PATH - this path may not have location where libglogc.so.0 resides unset $LD_LIBRARY_PATH and then set this to .so location

Upvotes: 0

Related Questions