LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 03-01-2008, 11:51 PM   #1
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Rep: Reputation: 0
unable to use pcap.h in ubuntu 7.10


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
 
Old 03-02-2008, 04:52 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
Hi and welcome to LQ.

You probably need to install libpcap-dev.
 
Old 03-03-2008, 01:27 AM   #3
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
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 ?
 
Old 03-03-2008, 06:21 AM   #4
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 70
How about using apt-get or aptitude e.g.
Code:
sudo aptitude update
sudo aptitude install libpcap-dev
 
Old 03-05-2008, 05:41 AM   #5
vijaygj
LQ Newbie
 
Registered: Mar 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Package Manager

Package Manager, helped to solve this problem. It download the required file ( libpcap-dev ) which satisfied all dependency.
 
  


Reply

Tags
libpcap, ubuntu710


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 11:59 AM.

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
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration