Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to symlink a shared object file (lib)
    primarykey
    data
    text
    <p>How do I symlink a lib file which is loaded as a shared library? </p> <pre><code>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 -&gt; libpcap.so.0.8 lrwxrwxrwx 1 root root 16 2011-08-18 01:56 libpcap.so.0.8 -&gt; libpcap.so.1.0.0 lrwxrwxrwx 1 root root 25 2013-02-19 10:01 libpcap.so.1 -&gt; /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 return 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 </code></pre> <p>os: backtrack 5 r1, 64 | arch: x86_64</p> <p>initially, echo LD_LIBRARY_PATH, returns a blank line. </p> <p>After creating the symlink, I then ran ldconfig, and retried my executable, with no avail.</p> <p>If I set LD_LIBRARY_PATH to /usr/lib, I then get an ELF error.</p> <p>Thanks in advance.</p> <p>/edit0 @tigran,@m01:</p> <pre><code>/usr/bin/wfw-wrapper: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.27, stripped </code></pre> <p>/edit1 @tigran:</p> <pre><code>root@root:~# ldd -v /usr/lib/libpcap.so.1.0.0 linux-vdso.so.1 =&gt; (0x00007fffed5e3000) libc.so.6 =&gt; /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) =&gt; /lib/libc.so.6 libc.so.6 (GLIBC_2.3) =&gt; /lib/libc.so.6 libc.so.6 (GLIBC_2.7) =&gt; /lib/libc.so.6 libc.so.6 (GLIBC_2.3.4) =&gt; /lib/libc.so.6 libc.so.6 (GLIBC_2.2.5) =&gt; /lib/libc.so.6 /lib/libc.so.6: ld-linux-x86-64.so.2 (GLIBC_PRIVATE) =&gt; /lib64/ld-linux-x86-64.so.2 ld-linux-x86-64.so.2 (GLIBC_2.3) =&gt; /lib64/ld-linux-x86-64.so.2 </code></pre> <p>/edit2 </p> <pre><code>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 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload