Can't Access Libpcap Library with Knoppix
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!
Do I need to compile some other libpcap library?
You need to su to root before the 'make install' step.
|All times are GMT -5. The time now is 02:20 PM.|