LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-13-2008, 11:27 PM   #1
nasim751
Member
 
Registered: Jan 2008
Posts: 40

Rep: Reputation: 15
Thumbs down cannot find -lpcap


hello,
i am ubuntu user after install cross compiler (arm-linux-gcc) trying for cross compile program using libpcap library. i am trying to run simple packet capture program but getting this problem.

PHP Code:
root@localhost:/home/nasim/Desktop/ppro# arm-linux-gcc -o snifx snifx.c -lpcap
/usr/local/hybus-arm-linux-R1.1/arm-linux/bin/ldcannot find -lpcap
collect2
ld returned 1 exit status 
Please tell someone what is the issue and how can i solve this problem.

Regards
Nasim
 
Old 02-14-2008, 04:27 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,286

Rep: Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664Reputation: 2664
-lpcap=libpcap
You should already have libpcap.
Missing -lsomething means: you need the devel-version
of that library.
So please install libpcap-dev and/or libpcap0.8-dev.
Good luck!
 
Old 02-14-2008, 09:13 AM   #3
nasim751
Member
 
Registered: Jan 2008
Posts: 40

Original Poster
Rep: Reputation: 15
dear friend after install libpcap-dev and/or libpcap0.8-dev also getting same problem. now what you think?
regards!
 
  


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
Find with -exec argument - not giving proper output..how to find... hinetvenkat Linux - Server 4 01-25-2010 07:19 AM
Can`t find C-compiler in Debian ,or at least can`t find one that can make executables hemmelig Linux - Software 4 05-26-2008 04:07 AM
cannot find -lpcap collect2: ld returned 1 exit status nasim751 Programming 1 02-12-2008 02:57 PM
new version of lpcap? cynthia_thomas Programming 1 01-22-2006 03:04 AM
How to uninstall lpcap Hammo Linux - Software 0 01-06-2004 05:18 AM


All times are GMT -5. The time now is 06:54 AM.

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