c - how to symlink a shared object file (lib) -
c - how to symlink a shared object file (lib) -
how symlink lib file loaded shared library?
root@root:/usr/lib# ls -l /usr/lib/ | grep libpcap -rw-r--r-- 1 root root 351636 2010-01-04 20:15 libpcap.a lrwxrwxrwx 1 root root 14 2011-08-18 01:56 libpcap.so -> libpcap.so.0.8 lrwxrwxrwx 1 root root 16 2011-08-18 01:56 libpcap.so.0.8 -> libpcap.so.1.0.0 lrwxrwxrwx 1 root root 25 2013-02-19 10:01 libpcap.so.1 -> /usr/lib/libpcap.so.1.0.0 -rw-r--r-- 1 root root 204128 2010-01-04 20:15 libpcap.so.1.0.0 root@root:/usr/lib# start-wfw checking wlan0 homecoming 1 root@root:/usr/lib# /tmp/wfw: error while loading shared libraries: libpcap.so.1: cannot open shared object file: no such file or directory root@root:/usr/lib# stop-wfw stopping () wfw: no process found
os: backtrack 5 r1, 64 | arch: x86_64
initially, echo ld_library_path, returns blank line.
after creating symlink, ran ldconfig, , retried executable, no avail.
if set ld_library_path /usr/lib, elf error.
thanks in advance.
/edit0 @tigran,@m01:
/usr/bin/wfw-wrapper: elf 32-bit lsb executable, intel 80386, version 1 (sysv), dynamically linked (uses shared libs), gnu/linux 2.6.27, stripped
/edit1 @tigran:
root@root:~# ldd -v /usr/lib/libpcap.so.1.0.0 linux-vdso.so.1 => (0x00007fffed5e3000) libc.so.6 => /lib/libc.so.6 (0x00007f64ebf3c000) /lib64/ld-linux-x86-64.so.2 (0x00007f64ec510000) version information: /usr/lib/libpcap.so.1.0.0: libc.so.6 (glibc_2.4) => /lib/libc.so.6 libc.so.6 (glibc_2.3) => /lib/libc.so.6 libc.so.6 (glibc_2.7) => /lib/libc.so.6 libc.so.6 (glibc_2.3.4) => /lib/libc.so.6 libc.so.6 (glibc_2.2.5) => /lib/libc.so.6 /lib/libc.so.6: ld-linux-x86-64.so.2 (glibc_private) => /lib64/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2 (glibc_2.3) => /lib64/ld-linux-x86-64.so.2
/edit2
root@root:/usr/bin# file -l /usr/lib/libpcap.so.1 /usr/lib/libpcap.so.1: elf 64-bit lsb shared object, x86-64, version 1 (sysv), dynamically linked, stripped
c shared-libraries
Comments
Post a Comment