LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Tags used in this thread
Popular LQ Tags ,

Reply
 
Thread Tools
Old 03-01-2008, 11:51 PM   #1
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5
Thanked: 0
unable to use pcap.h in ubuntu 7.10


[Log in to get rid of this advertisement]
Hi , I am using Ubuntu 7.10 .
I am not able to use pcap.h file.
Though I have istalled libpcap package, after gcc compilation it is giving error as file not found.
How this problem can be solved ?
--
Vijay
vijaygj is offline  
Tag This Post ,
Reply With Quote
Old 03-02-2008, 04:52 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
Hi and welcome to LQ.

You probably need to install libpcap-dev.
reddazz is offline     Reply With Quote
Old 03-03-2008, 01:27 AM   #3
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5
Thanked: 0

Original Poster
I downloaded libpcap-dev from ubuntu website.
But it gave error dependency not satisfied tried to remove dependency but it gave further dependency like flex is required when downloaded flex there was another dependency so on.
Is there any way to install all required dependency automatically ?
vijaygj is offline     Reply With Quote
Old 03-03-2008, 06:21 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,294
Thanked: 13
How about using apt-get or aptitude e.g.
Code:
sudo aptitude update
sudo aptitude install libpcap-dev
reddazz is offline     Reply With Quote
Old 03-05-2008, 05:41 AM   #5
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5
Thanked: 0

Original Poster
Package Manager

Package Manager, helped to solve this problem. It download the required file ( libpcap-dev ) which satisfied all dependency.
vijaygj is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
PCAP library ani09 Linux - Networking 1 12-12-2007 09:12 AM
pcap error ilnli Programming 2 05-26-2007 07:47 PM
Programming w/ pcap Rawjoe Programming 2 12-07-2006 09:55 AM
Pcap Files OriDagan Linux - Networking 0 07-15-2005 05:20 AM
Questions on pcap.h Traveler_Q Programming 2 02-25-2004 04:03 PM


All times are GMT -5. The time now is 01:12 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration