tcpdump mailing list archives

Re: libpcap.so.1 => not found


From: Guy Harris <guy () alum mit edu>
Date: Wed, 23 Jun 2010 10:49:35 -0700


On Jun 23, 2010, at 3:57 AM, Hemal Shah wrote:

          I am trying to run tool on linux.

What distribution, and what version of that distribution?

It caught into the error :
"/cbm: error while loading shared libraries: libpcap.so.1: cannot open
shared object file: No such file or directory "

From the forums i found that out put of
[root@hemal cbm-tool]# ldd cbm

        ...

       libpcap.so.1 => not found

        ...

I tried to look into :

[root@hemal ~]# ls /usr/lib  | grep libpcap
libpcap.so.0.9
libpcap.so.0.9.7

So where was cbm built?  It appears it wasn't built for the machine on which you're running, as it thinks the soname of 
libpcap is "libpcap.so.1", but your system has libpcap.so.0.9.7 and libpcap.so.0.9 (the latter is probably a symlink to 
the former).

Further i downloaded libpcap-1.1.1.tar.gz and installed(configure, make,
make install)  under root folder.

So, having done that, do you now have a /usr/lib/libpcap.so.1 either in /usr/lib or /usr/local/lib?

If so...

Still it is not able to find   libpcap.so.1

...you might have to run ldconfig.
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: