LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 10-25-2012, 08:50 PM   #1
NaTTaN
LQ Newbie
 
Registered: Jun 2011
Location: user land
Distribution: Slackware 14
Posts: 28

Rep: Reputation: Disabled
[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
 
Old 10-25-2012, 09:08 PM   #2
NorthBridge
LQ Newbie
 
Registered: Oct 2012
Location: Somewhere after <?php
Distribution: Slackware-current
Posts: 16

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

Code:
slackpkg search libpcap
 
Old 10-26-2012, 09:40 PM   #3
NaTTaN
LQ Newbie
 
Registered: Jun 2011
Location: user land
Distribution: Slackware 14
Posts: 28

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-26-2012, 11:02 PM   #4
NorthBridge
LQ Newbie
 
Registered: Oct 2012
Location: Somewhere after <?php
Distribution: Slackware-current
Posts: 16

Rep: Reputation: 2
You have the libcap installed, not the libpcap. Get it with
Code:
slackpkg install libpcap
 
Old 11-16-2012, 06:40 PM   #5
NaTTaN
LQ Newbie
 
Registered: Jun 2011
Location: user land
Distribution: Slackware 14
Posts: 28

Original Poster
Rep: Reputation: Disabled
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....
 
Old 11-16-2012, 07:16 PM   #6
NorthBridge
LQ Newbie
 
Registered: Oct 2012
Location: Somewhere after <?php
Distribution: Slackware-current
Posts: 16

Rep: Reputation: 2
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR! Libpcap library/headers (libpcap.a (or .so)/pcap.h) not found OtagoHarbour Linux - Newbie 12 08-28-2012 02:59 PM
PCAP library ani09 Linux - Networking 1 12-12-2007 09:12 AM
types of error's when capturing packets using pcap library cynthia_thomas Programming 1 01-21-2006 08:55 AM
doubt in pcap library (n/w prog) live_dont_exist Programming 0 05-10-2005 09:42 PM
pcap library jagman Programming 1 04-27-2005 08:35 AM


All times are GMT -5. The time now is 07:42 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration