ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
July 17th, 2024 | 10:00am-11:55am SGT (UTC+8) | Online

Wireshark-users: [Wireshark-users] Why do I need to set $LD_LIBRARY_PATH

From: "THOMAS LEWIS-FLOOD" <tlewisflood@xxxxxxx>
Date: Sun, 11 Jun 2006 09:09:14 -0400
What am I missing? I can run ./wireshark out of the src dir, but not from /usr/local/bin. Error message:

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

So I set $LD_LIBRARY_PATH and it worked. I'm confused ... compiling on Slackware (10.2) with kernel version 2.4.31, and version 1.2.10 of gtk/glib. The following all seemed to go fine,

    ./configure ; make ; make install

I even noticed that config.log had a line:

    LDFLAGS=' -L/usr/local/lib -L/usr/local/lib'

So I would expect that the executable should have no problem finding libwiretap library:

me@host ~ $ cd /usr/local/lib/ ; ls -l libwiretap*
-rwxr-xr-x  1 root root     914 2006-06-10 21:39 libwiretap.la*
lrwxrwxrwx 1 root root 19 2006-06-10 21:39 libwiretap.so -> libwiretap.so.0.0.1* lrwxrwxrwx 1 root root 19 2006-06-10 21:39 libwiretap.so.0 -> libwiretap.so.0.0.1*
-rwxr-xr-x  1 root root 1164750 2006-06-10 21:39 libwiretap.so.0.0.1*
me@host lib $

--
Hope you enjoy your day,

Tom Lewis-Flood
tlewisflood@xxxxxxx