LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-08-2013, 10:31 AM   #1
Cheet
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Rep: Reputation: Disabled
how to install pcap on ubuntu


when i run c program it gives the error
program.c(.text+0x2a): undefined reference to
'pcap_lookupdev'
program.c.text+0x86): undefined reference to `pcap_lookupnet'
 
Old 03-08-2013, 10:46 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,157

Rep: Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643Reputation: 2643
Welcome to LQ.

All pcap : $ sudo apt-get install libpcap-dev
 
1 members found this post helpful.
Old 03-08-2013, 10:53 AM   #3
Cheet
LQ Newbie
 
Registered: Mar 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
how to run c program containing header file pcap

first of all thank sir

but when i run sudo apt-get install libpcap-dev
it gives the result
Reading package lists... Done
Building dependency tree
Reading state information... Done
libpcap-dev is already the newest version.
The following packages were automatically installed and are no longer required:
 
Old 03-08-2013, 06:59 PM   #4
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Moved: This thread is more suitable in Linux-Software and has been moved accordingly to help your question get the exposure it deserves.
 
  


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
install pcap.h howard0715 Fedora 1 11-20-2011 03:55 PM
cannot install Net::Pcap on fedora12 singhabsk Linux - Software 4 11-19-2010 12:20 AM
unable to use pcap.h in ubuntu 7.10 vijaygj Ubuntu 4 03-05-2008 05:41 AM
Can't install Net::Pcap SlackN00b Slackware 11 02-25-2008 08:40 PM


All times are GMT -5. The time now is 12:48 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 Google+: linuxquestions
Open Source Consulting | Domain Registration