ANNOUNCEMENT: Live Wireshark University & Allegro Packets online APAC Wireshark Training Session
April 17th, 2024 | 14:30-16:00 SGT (UTC+8) | Online

Wireshark-users: Re: [Wireshark-users] libpcap library usage

From: Jeff Morriss <jeff.morriss.ws@xxxxxxxxx>
Date: Wed, 28 May 2008 14:02:12 -0400


Faraz Shamim wrote:
Hi All,

I am trying to use libpcap with wireshark. I have
compiled libpcap with a special API and it went OK. I
have libpcap in /usr/local/lib/libpcap.a and it is
included in my lib path in my .cshrc

setenv LDFLAGS "-L/usr/local/lib"

but when I run configure why it says at the end that
 Use libcap library : no

Any help will be highly appreciated.

Try:

./configure --with-pcap=/usr/local

(You also need to put the libpcap header files in /usr/local for that to work...)