Can't install Net::Pcap
hi all,
I've tried with: Code:
perl -MCPAN -e shell and then Code:
force install Net::Pcap Errors: [...] make: *** [Pcap.o] Error 1 SAPER/Net-Pcap-0.16.tar.gz /usr/bin/make -- NOT OK Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible Failed during this command: SAPER/Net-Pcap-0.16.tar.gz : make NO Can someone helps me pls? Thanks in advance |
You've omitted the relevant errors. We would need the errors that occur above the make error to determine the original cause of the error. Everything beyond that is normal.
|
here we go:
Code:
cpan[1]> install Net::Pcap |
Roll back to 0.14... 15 and 16 are just plain broke. IMO, when you see Rawhide using an old version of something you can be assured it's for a good reason.
|
Ok thx It works.
I'd like to add howto install Net::RawIP that requires libpcap.so. (Not found in my Slackware) Download this file from ftp://rpmfind.net/linux/fedora/core/....3-12.i386.rpm then Code:
rpm2tgz libpcap-0.8.3-12.i386.rpm download Net::RawIP from Cpan and compile with: Code:
perl Makefile.PL INC=-I/usr/include LIBS='-L/usr/lib -lpcap' Code:
make install |
Uhm? Why downloading an RPM and fiddle out a single .so?!
There's pcap package for Slackware available at linuxpackages.net. Just install it and the Perl module will work fine. And /usr/lib doesn't have to be added on the command line - that's the one of the two default path for libs which even haven't to be included into /etc/ld.so.conf. :) So, the easy way would be: swaret --install pcap ldconfig perl Makefile.PL; make; make test; make install and there you are. |
Well... I wouldn't do that either. You'll be over writing a stock Slackware package which is kinda bad form. And using a so from a mismatched version wouldn't sit right with me as well.
Personally, I'd download the source code for libpcap-0.9.7 and then: Code:
cd libpcap-0.9.7 |
So GURUs where can I get net-pcap-0.l4 for FC7. CPAN apparently only have the latest one i.e. 0.16 and the one available on net keep on failing to be installed. I am trying to automatically download and install using the default installer.
A quick help is appreciated. |
Okay - I finally was able to get the CPAN's version to install.
make test gives me following message: (10 subtests UNEXPECTEDLY SUCCEEDED), 3 tests and 96 subtests skipped. Failed 1/24 test scripts, 95.83% okay. 1/1608 subtests failed, 99.94% okay. make: *** [test_dynamic] Error 255 but the module is successfully installed as is shown by instmodsh. Is it alright? Next I am still having problems with installing Net::RawIP Upon using: perl Makefile.PL INC=-I/usr/local/include/pcap LIBS='-L/usr/lib/pcap -lpcap' it gives me: Could not find libpcap, see the README file how to install it Earlier I installed (i think so) the development version of libpcap from tcpdump website using cvs repositories and the commands they have listed there. I have libpcap-0.9.5-1.fc7 installed on my machine. Any help is appreciated. Regards Kam |
Don't know. Net::RawIP compiles fine for me. I'd say there is a problem with libpcap. If you really do have libpcap FC7 installed, then you shouldn't be telling net-rawip to be looking in /usr/local for the includes. Fedora installs them in /usr/include... They also install the libs in /usr/lib, not /usr/lib/pcap... You also don't have to tell it to link against lpcap. It does it on it's own, thus the whole reason it's looking for the libpcap libraries...
Just use the same commands I did below. Code:
[root@jaguar ~/Desktop/Net-RawIP-0.23] perl Makefile.PL http://rpm.pbone.net/index.php3/stat....i386.rpm.html |
Dear Jong,
Thanks. I figured out that the libpcap development version was not installed properly (It was a frustrating experience for me, the development version can be found here http://rpmfind.net/linux/rpm2html/se...=libpcap-devel). And yes you are right, once you have libpcap and its development version installed properly, simple make commands work or more conveniently CPAN auto install process can be used. Regards, Kam |
That's one of my biggest pet peeves... Splitting up packages... Glad it's sorted.
|
All times are GMT -5. The time now is 04:52 PM. |