LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pcap.h not found while installing Wireshark. (https://www.linuxquestions.org/questions/linux-newbie-8/pcap-h-not-found-while-installing-wireshark-671549/)

jawad512 09-22-2008 07:03 AM

pcap.h not found while installing Wireshark.
 
Hi,
i have found following error while installing Wireshark.



configure: error: Header file pcap.h not found; if you installed libpcap
from source, did you also do "make install-incl", and if you installed a
binary package of libpcap, is there also a developer's package of libpcap,
and did you also install that package?

jschiwal 09-22-2008 07:58 AM

And? Did you install the -devel version of libpcap?

See if you have both a libpcap package and a libpcap-devel package installed. The former supplies the dynamical library. The latter supplies a static library and the header files needed to compile. So you need both packages installed.

jawad512 09-22-2008 08:15 AM

thanks dear for your immediate response,

is there any other simple way?

reddazz 09-22-2008 08:42 AM

Quote:

Originally Posted by jawad512 (Post 3288163)
thanks dear for your immediate response,

is there any other simple way?

That is a simple way. All you need to do is
Code:

#yum -y install libpcap-devel
The "#" at the beginning of the command should not be entered. Its there to indicate that you need to be root in order to run the command.

jschiwal 09-22-2008 02:51 PM

You could check in your package manager and see if there is a wireshark package available. If not, check the livna repository, or search in the http://rpm.pbone.net web site. You will still need to install the regular "libpcap" library if it isn't installed yet but the package manager should pick that up for you automatically.

jawad512 09-23-2008 02:27 AM

thanks reddazz,

yum works..., but how to run it?

'Installed: wireshark.i386 0:0.99.6-3.fc8' is system response,

reddazz 09-26-2008 05:54 AM

If yum says that wireshark is installed, then the next thing is to locate it in the menu or command line and use it.


All times are GMT -5. The time now is 05:13 PM.