LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   [ERROR message]You appear to lack the pcap library. (http://www.linuxquestions.org/questions/slackware-14/%5Berror-message%5Dyou-appear-to-lack-the-pcap-library-4175434112/)

NaTTaN 10-25-2012 07:50 PM

[ERROR message]You appear to lack the pcap library.
 
Am trying to run a perl script that needs to run some perl libraries it has many dependencies....one of them is 'Net::Packet' but when i try to install it using cpan it downloads but then I get this error message:

Code:

CPAN.pm: Building S/SA/SAPER/Net-Pcap-0.16.tar.gz

looking for -lpcap... no
        - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
You appear to lack the pcap(3) library.

If it is installed in a non-standard location, please try setting the LIBS
and INC values on the command line.

Or get the sources and install the pcap library from http://www.tcpdump.org/

If you install the pcap library using a system package, make sure to also
install the corresponding -devel package, which contains the C headers needed
to compile this module.

edt: I have Slackware 14.0

greets
nattan

NorthBridge 10-25-2012 08:08 PM

Not sure if this will help, but have you checked if that lib is installed?

Code:

slackpkg search libpcap

NaTTaN 10-26-2012 08:40 PM

Yes i have it installed....

Code:

:~# slackpkg search libcap

Looking for libcap in package list. Please wait... DONE

The list below shows all packages with name matching "libcap".

[ installed ] - libcap-2.22-i486-1

I looked for it using the 'whereis' command:

Code:

libcap: /lib/libcap.so /lib/libcap.a /usr/man/man3/libcap.3.gz /usr/man/man3p/libcap.3.gz /usr/share/man/man3/libcap.3.gz /usr/share/man/man3p/libcap.3.gz /usr/X11/man/man3/libcap.3.gz /usr/X11/man/man3p/libcap.3.gz
.....and as you can see i do have it installed..but now i can't even imagine what is going on with it.

NorthBridge 10-26-2012 10:02 PM

You have the libcap installed, not the libpcap. Get it with
Code:

slackpkg install libpcap

NaTTaN 11-16-2012 05:40 PM

thanks for your answer but when i try to use the command line you suggested me it says that there's no package matching my search....

NorthBridge 11-16-2012 06:16 PM

Most probably this means you already have it installed, otherwise slackpkg would have detected and installed it. Just in case, check if you have it installed (don't forget the "p" after lib)

Code:

slackpkg search libpcap
If it's installed, try installing the tcpdump package, which contains the pcap headers, and try again to build.

If this still doesn't help, check out this thread for a solution. It seems that the library and its devel version have been a little bit messed up at that time. No idea if it's fixed by now, but it's worth a try.


All times are GMT -5. The time now is 10:56 AM.