LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-22-2008, 08:03 AM   #1
jawad512
LQ Newbie
 
Registered: Sep 2008
Distribution: Fedora
Posts: 5

Rep: Reputation: 0
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?
 
Old 09-22-2008, 08:58 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

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

Last edited by jschiwal; 09-22-2008 at 03:44 PM.
 
Old 09-22-2008, 09:15 AM   #3
jawad512
LQ Newbie
 
Registered: Sep 2008
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
thanks dear for your immediate response,

is there any other simple way?
 
Old 09-22-2008, 09:42 AM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Quote:
Originally Posted by jawad512 View Post
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.
 
Old 09-22-2008, 03:51 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
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.
 
Old 09-23-2008, 03:27 AM   #6
jawad512
LQ Newbie
 
Registered: Sep 2008
Distribution: Fedora
Posts: 5

Original Poster
Rep: Reputation: 0
thanks reddazz,

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

'Installed: wireshark.i386 0:0.99.6-3.fc8' is system response,
 
Old 09-26-2008, 06:54 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

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


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
configure: error: Header file pcap.h not found; when tried installing ethereal networ ssangeetha Linux - Software 6 05-02-2013 01:28 PM
Problem installing wireshark with yum bozoka45 Fedora 4 10-12-2007 05:33 PM
problems installing ethereal/wireshark Valkyrie_of_valhalla Linux - Software 9 04-29-2007 05:38 AM
Error "pcap.h" not found when tried installing ethereal network analyser for redhat ssangeetha Linux - Software 1 03-21-2007 02:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:26 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration