LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 10-17-2003, 12:34 PM   #1
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Rep: Reputation: 0
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
 
Old 10-17-2003, 02:50 PM   #2
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
Find out where libpcap is at on your system. Run this command:

Code:
/sbin/ldconfig -p | grep "libpcap"
My output was:
Code:
        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.so is the real file and the others are symlinks to it. What might be happening is you have libpcap.so on your machine, but not a symlink named libpcap.so.0, which is what perl-Net-Pcap-0.04-5 is looking for (I'm assuming your installing the perl-Net-Pcap-0.04-5.rpm, and not trying to install Net::Pcap via CPAN or source, right?). See, whoever created that rpm linked against libpcap.so.0, so when it is being installed it is being very literal about what it wants.

Just do this:

Code:
ln -s /usr/lib/libpcap.so /usr/lib/libpcap.so.0
Assuming libpcap.so really does exist in /usr/lib on your machine, which it should if "package libpcap-0.7.2-1 is already installed" and you are running RedHat Linux.

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.
 
Old 10-17-2003, 03:04 PM   #3
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 10-17-2003, 03:17 PM   #4
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
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.
 
Old 10-17-2003, 03:24 PM   #5
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 10-17-2003, 03:30 PM   #6
notsoevil
Member
 
Registered: May 2001
Location: Louisville, Kentucky, USA
Distribution: RedHat ES
Posts: 120

Rep: Reputation: 15
Well, first find out where that RPM actually placed Net::Pcap.

Code:
find /usr -name "Pcap.pm"
If the maintainer of the RPM created it from a path not in your @INC, it will have created it. You should then be able to move it.

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
 
Old 10-17-2003, 03:37 PM   #7
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
/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 :-)
 
Old 10-17-2003, 04:14 PM   #8
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
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>
 
Old 10-18-2003, 03:04 PM   #9
r4736
LQ Newbie
 
Registered: Sep 2003
Location: channahon
Distribution: Redhat Linux 9.0
Posts: 10

Original Poster
Rep: Reputation: 0
BUMP
 
  


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
Perl Net::Pcap install hang at loop test Bluesuperman Programming 1 08-17-2005 10:39 AM
net-snmp : perl(tk) shivaligupta Linux - Software 0 02-03-2005 11:18 AM
Perl Net Ping jholl Programming 0 12-07-2004 10:22 AM
perl: Net::Ping and ipv6 Kostko Programming 1 05-11-2003 12:14 AM
Perl Net::RawIP Sammy2ooo Linux - Software 1 01-23-2003 06:52 PM

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

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