libpcap.so.0 is needed by perl-Net-Pcap-0.04-5
trying to install perl-Net-Pcap-0.04-5 and i get the error "libpcap.so.0 is needed by perl-Net-Pcap-0.04-5" as far as i could find out libpcap.so.0 is from libpcap so i downloaded and installed it but it said "package libpcap-0.7.2-1 is already installed" so i am at a dead end, if anyone could help me it would be greatly appreciated
thanks in advance |
Find out where libpcap is at on your system. Run this command:
Code:
/sbin/ldconfig -p | grep "libpcap" Code:
libpcap.so.0.6.2 (libc6) => /usr/lib/libpcap.so.0.6.2 Just do this: Code:
ln -s /usr/lib/libpcap.so /usr/lib/libpcap.so.0 Make sure to run the ldconfig command (above) first to determine if you do have a version of libpcap in your library path. Post the output here if you get confused. |
here is my result and as you can see it does have the link wich is why this has confused me so much
libpcap.so.0.6.2 (libc6) => /usr/lib/libpcap.so.0.6.2 libpcap.so.0.6 (libc6) => /usr/lib/libpcap.so.0.6 libpcap.so.0 (libc6) => /usr/lib/libpcap.so.0 libpcap.so (libc6) => /usr/lib/libpcap.so libpcap-nessus.so.2 (libc6) => /usr/local/lib/libpcap-nessus.so.2 libpcap-nessus.so (libc6) => /usr/local/lib/libpcap-nessus.so |
Weird. I guess the next thing to try is see what happens when you try installing your rpm with the --nodeps option:
rpm -ivh --nodeps perl-Net-Pcap-0.04-5.rpm Alternately, I suggest install Perl modules via the CPAN shell, not RPMs. |
it looks to install but i have noticed with rpms looks can be deciving so i try to run what i needed net pcap and i still get the error
Can't locate Net/Pcap.pm in @INC (@INC contains: /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.0/i386-linux-thread-multi /usr/lib/perl5/5.8.0 .) and being a newbie i dont know what you mean by cpan shell |
Well, first find out where that RPM actually placed Net::Pcap.
Code:
find /usr -name "Pcap.pm" As far as the CPAN shell, you will eventually find Perl modules that do not have available RPMs, so better get used to using CPAN. Check out http://www.cpan.org for documentation. But for a quickie, as root (or sudo if you can): perl -MCPAN -e shell Which will switch you to the CPAN shell (which will look like 'cpan>'). From there type: install Net::Pcap |
/usr/lib/perl5/site_perl/i686-pld-linux/5.6.1/Net/Pcap.pm
this is what it found, should i move it some where, and thanks for the link :-) |
and i did the install Net::Pcap and here is what i got
cpan> install Net::Pcap CPAN: Storable loaded ok CPAN: LWP::UserAgent loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/01mailrc.txt.gz Going to read /root/.cpan/sources/authors/01mailrc.txt.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/...details.txt.gz Going to read /root/.cpan/sources/modules/02packages.details.txt.gz Database was generated on Fri, 17 Oct 2003 05:46:32 GMT There's a new CPAN.pm version (v1.76) available! [Current version is v1.61] You might want to try install Bundle::CPAN reload cpan without quitting the current session. It should be a seamless upgrade while we are running... Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/modules/03modlist.data.gz Going to read /root/.cpan/sources/modules/03modlist.data.gz Going to write /root/.cpan/Metadata Running install for module Net::Pcap Running make for T/TI/TIMPOTTER/Net-Pcap-0.04.tar.gz Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/...ap-0.04.tar.gz CPAN: Digest::MD5 loaded ok Fetching with LWP: ftp://ftp.perl.org/pub/CPAN/authors/...TTER/CHECKSUMS Checksum for /root/.cpan/sources/authors/id/T/TI/TIMPOTTER/Net-Pcap-0.04.tar.gz ok Scanning cache /root/.cpan/build for sizes Net-Pcap-0.04/ Net-Pcap-0.04/t/ Net-Pcap-0.04/t/leaktest6.pl Net-Pcap-0.04/t/06-offline.t Net-Pcap-0.04/t/02-lookup.t Net-Pcap-0.04/t/08-filter.t Net-Pcap-0.04/t/03-openlive.t Net-Pcap-0.04/t/07-stats.t Net-Pcap-0.04/t/04-loop.t Net-Pcap-0.04/t/09-error.t Net-Pcap-0.04/t/11-misc.t Net-Pcap-0.04/t/01-module.t Net-Pcap-0.04/t/leaktest1.pl Net-Pcap-0.04/t/12-next.t Net-Pcap-0.04/t/leaktest2.pl Net-Pcap-0.04/t/10-fileno.t Net-Pcap-0.04/t/README Net-Pcap-0.04/t/leaktest3.pl Net-Pcap-0.04/t/13-dispatch.t Net-Pcap-0.04/t/05-dump.t Net-Pcap-0.04/t/leaktest4.pl Net-Pcap-0.04/t/leaktest5.pl Net-Pcap-0.04/README Net-Pcap-0.04/MANIFEST Net-Pcap-0.04/Pcap.xs Net-Pcap-0.04/Makefile.PL Net-Pcap-0.04/Pcap.pm Net-Pcap-0.04/typemap CPAN.pm: Going to build T/TI/TIMPOTTER/Net-Pcap-0.04.tar.gz Checking if your kit is complete... Looks good Writing Makefile for Net::Pcap cp Pcap.pm blib/lib/Net/Pcap.pm /usr/bin/perl /usr/lib/perl5/5.8.0/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.0/ExtUtils/typemap -typemap typemap Pcap.xs > Pcap.xsc && mv Pcap.xsc Pcap.c gcc -c -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"0.04\" -DXS_VERSION=\"0.04\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" Pcap.c Pcap.c: In function `XS_Net__Pcap_file': Pcap.c:736: warning: passing arg 8 of `Perl_do_open' from incompatible pointer type Running Mkbootstrap for Net::Pcap () chmod 644 Pcap.bs rm -f blib/arch/auto/Net/Pcap/Pcap.so LD_RUN_PATH="/usr/lib" gcc -shared -L/usr/local/lib Pcap.o -o blib/arch/auto/Net/Pcap/Pcap.so -lpcap chmod 755 blib/arch/auto/Net/Pcap/Pcap.so cp Pcap.bs blib/arch/auto/Net/Pcap/Pcap.bs chmod 644 blib/arch/auto/Net/Pcap/Pcap.bs Manifying blib/man3/Net::Pcap.3pm /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/01-module......ok t/02-lookup......ok t/03-openlive....ok t/04-loop........ok t/05-dump........ok t/06-offline.....ok t/07-stats.......FAILED test 1 Failed 1/1 tests, 0.00% okay t/08-filter......ok t/09-error.......ok t/10-fileno......ok t/11-misc........ok t/12-next........ok t/13-dispatch....ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/07-stats.t 1 1 100.00% 1 Failed 1/13 test scripts, 92.31% okay. 1/24 subtests failed, 95.83% okay. make: *** [test_dynamic] Error 29 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force cpan> |
BUMP
|
All times are GMT -5. The time now is 10:00 AM. |