LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 06-22-2004, 03:58 PM   #1
inthefuture
LQ Newbie
 
Registered: Jun 2004
Posts: 23

Rep: Reputation: 15
Lightbulb Can't Access Libpcap Library with Knoppix


Hey

I am so new to linux that every step I take gives me so much trouble. Hopefully I can find good solution here...

The problem should be simple for experts I guess:

I use Knoppix 3.4 to compile libpcap 0.8.3. Suppose I get a libpcap library, which will be used by another program, named as "weplab".

./configure and make goes well except Knoppix doesn't allow to write on /usr folder (read-only system). So I let the files go to /tmp by using

./configure --prefix=/usr && make && make install

I checked /tmp and /tmp/lib/, libpcap.a, pcap.h and other files are there. But when I configure weplab, it doesn't recognize the path. Then I copied everything into weplab folder. Still, it gives error like:

undefined reference pcap_close
undefined reference pcap_......

Sorry for my lengthy description. My question is how can I let the weplab program to recognize the library? ( I suppose libpcap.a is the library and has everything I need). I checked one of the files that uses the reference, it includes "pcap.h" in the header and directly call the function. I don't know how to modify it.

Please anybody help me, I really need to get this down as soon as possible.

Many many thanks!
 
Old 06-22-2004, 04:16 PM   #2
inthefuture
LQ Newbie
 
Registered: Jun 2004
Posts: 23

Original Poster
Rep: Reputation: 15
Do I need to compile some other libpcap library?
 
Old 06-23-2004, 07:39 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to su to root before the 'make install' step.
 
  


Reply



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
JAVA JNI program to access shared library sabliny Programming 3 11-17-2005 05:13 PM
Why can Knoppix access my Windows files!? veeruk101 Linux - Newbie 3 03-17-2005 09:40 AM
Can't access libpcap library :( inthefuture Programming 8 06-24-2004 05:30 PM
knoppix gives root access at diskcheck trees Linux - Security 6 02-03-2004 01:29 PM
UnsatisfiedLinkError on JNI access to Shared Library Kavinjka Linux - Software 1 08-25-2003 06:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:21 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
Open Source Consulting | Domain Registration