libpcap.so.1 => not found

5,270 views
Skip to first unread message

shah hemal

unread,
Jun 23, 2010, 7:05:39 AM6/23/10
to vg...@googlegroups.com
Hi,

I am trying to run tool on linux. 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
linux-gate.so.1 => (0x00110000)
libnsl.so.1 => /lib/libnsl.so.1 (0x0067c000)
libpcap.so.1 => not found
libdl.so.2 => /lib/libdl.so.2 (0x008ff000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c8f000)
libm.so.6 => /lib/libm.so.6 (0x008d4000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c76000)
libc.so.6 => /lib/libc.so.6 (0x0077e000)
/lib/ld-linux.so.2 (0x0075f000)

I tried to look into :

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

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

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


Kindly help to get out of this issue. Many thanks in Advance.


Thanks,

Hemal Shah

Assistant Professor,
Computer Engineering
U. V. Patel College of Engineering
Ganpat University
Kherva-382711
Phone : (02762) 286805 / 286081 Ext: 2324
URL: www.uvpce.ac.in

Chandrakant Solanki

unread,
Jun 23, 2010, 7:10:59 AM6/23/10
to vg...@googlegroups.com

--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG

Hi Hemal,

First checkout "rpm -qa  | grep -i libpcap", and check for libpcap and libpcap-devel rpm is installed or not.

And you have installed using .tar.gz then library is installed in /usr/local/lib directory, then set

/usr/local/lib
/usr/lib


into /etc/ld.so.conf and then execute ldconfig command.

Or one thing is that whatever tool you executed it needs that particular library only, then solution is link using "ln" command to your libpcap.so.1 library.




--
Regards,

Chandrakant Solanki

Tejas Barot

unread,
Jun 23, 2010, 8:46:03 AM6/23/10
to vg...@googlegroups.com
Hello,

On Wed, Jun 23, 2010 at 4:35 PM, shah hemal <hsha...@yahoo.com> wrote:
Hi,

          I am trying to run tool on linux. 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
       linux-gate.so.1 =>  (0x00110000)
       libnsl.so.1 => /lib/libnsl.so.1 (0x0067c000)
       libpcap.so.1 => not found
       libdl.so.2 => /lib/libdl.so.2 (0x008ff000)
       libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c8f000)
       libm.so.6 => /lib/libm.so.6 (0x008d4000)
       libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c76000)
       libc.so.6 => /lib/libc.so.6 (0x0077e000)
       /lib/ld-linux.so.2 (0x0075f000)

I tried to look into :

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

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

Have you installed libpcap using RPM or YUM ? If no, then try to do that.

Can you tell us what kind of tool you are trying to run ?

I think libpcap-devel will solve your problem

yum -y install libpcap*

I think If you are installing your tool using source then you need a libpcap-devel also.


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


Kindly help to get out of this issue.  Many thanks in Advance.


Thanks,

Hemal Shah

Assistant Professor,
Computer Engineering
U. V. Patel College of Engineering
Ganpat University
Kherva-382711
Phone : (02762) 286805 / 286081 Ext: 2324
URL: www.uvpce.ac.in
--
Please read http://www.catb.org/~esr/faqs/smart-questions.html before posting.
You received this message because you are subscribed to the "Vibrant GNU/Linux User Group".
To stop receiving emails from this group, mail to VGLUG-un...@googlegroups.com
To post to this group, send email to VG...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/VGLUG



--
Thanks & Regards,
Tejas Barot
Linux Administrator,
Red Hat Certified Engineer,
Linux Blog:- http://blog.ask4itsolutions.com
Open Source :- http://opensource.ask4itsolutions.com

Registered Linux User :- http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=507586

"Linux is user friendly, it's just picky about its friends."

ElectroMech :- Vibrant GNU/Linux User Group

unread,
Jun 23, 2010, 9:24:43 AM6/23/10
to VGLUG
Hi,

> I am trying to run tool on linux. It caught into the error :
> "/cbm: error while loading shared libraries: libpcap.so.1: cannot open shared object file: No such file or directory "

You version is not ok, but try one trick most of the time it will
work.
>
> From the forums i found that out put of
> [root@hemal cbm-tool]# ldd cbm
> linux-gate.so.1 => (0x00110000)
> libnsl.so.1 => /lib/libnsl.so.1 (0x0067c000)
> libpcap.so.1 => not found
> libdl.so.2 => /lib/libdl.so.2 (0x008ff000)
> libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00c8f000)
> libm.so.6 => /lib/libm.so.6 (0x008d4000)
> libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00c76000)
> libc.so.6 => /lib/libc.so.6 (0x0077e000)
> /lib/ld-linux.so.2 (0x0075f000)
>
> I tried to look into :
>
> [root@hemal ~]# ls /usr/lib | grep libpcap
> libpcap.so.0.9
> libpcap.so.0.9.7

cd /usr/lib
ln -s /usr/lib/libpcap.so.0.9 libpcap.so.1

Then try again.

Please letus know it is working or not.

Thanks and Regards.

Nilesh J. Vaghela
http://www.electromech.info

shah hemal

unread,
Jun 24, 2010, 12:51:04 AM6/24/10
to vg...@googlegroups.com
Hi Nilesh,

It works. Thanks a lot.
cheers,
Hemal Shah

Assistant Professor,
Computer Engineering
U. V. Patel College of Engineering
Ganpat University
Kherva-382711
Phone : (02762) 286805 / 286081 Ext: 2324
URL: www.uvpce.ac.in

--- On Wed, 6/23/10, ElectroMech :- Vibrant GNU/Linux User Group <nileshj...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages