View previous topic :: View next topic |
Author |
Message |
alexwade n00b
Joined: 22 Aug 2002 Posts: 47 Location: Orlando, FL
|
Posted: Fri Nov 08, 2002 5:55 pm Post subject: How to install Net::Pcap |
|
|
I'm trying run a program that needs 'Net::Pcap'. How do I go about installing it? |
|
Back to top |
|
|
lx Veteran
Joined: 28 May 2002 Posts: 1012 Location: Netherlands
|
Posted: Fri Nov 08, 2002 8:21 pm Post subject: |
|
|
Well it are the perl bindings for using the libpcap library, so you need libpcap and I think this file http://search.cpan.org/src/TIMPOTTER/Net-Pcap-0.04/Pcap.pm installed somewhere in /usr/lib/perl5/....???? but I'm not an expert. But i'm sure you can find something on google and probably there's somebody more qualified who can help you out,....
Good luck,
Cya lX. _________________ "Remember there's a big difference between kneeling down and bending over.", Frank Zappa |
|
Back to top |
|
|
alexwade n00b
Joined: 22 Aug 2002 Posts: 47 Location: Orlando, FL
|
Posted: Fri Nov 08, 2002 8:54 pm Post subject: More specifically |
|
|
I would like to know how to install anything...I know there's a (semi)automatic way to do this. If I get the message "Can't locate X/Y in @INC" I want to know how to install "X::Y" |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Nov 08, 2002 9:40 pm Post subject: Re: More specifically |
|
|
alexwade wrote: | I would like to know how to install anything...I know there's a (semi)automatic way to do this. If I get the message "Can't locate X/Y in @INC" I want to know how to install "X::Y" |
First thing, with the current state of the Perl ebuild, is to make sure that you have emerged ExtUtils-MakeMaker after the last time you emerged perl. Otherwise things will get installed in the wrong place. Then, the first thing I do is try "emerge -p X-Y", which is usually the ebuild naming convention for Perl modules. If it doesn't exist, and I have some time, I make an ebuild for it and submit it to bugs.gentoo.org. If I'm in a hurry, then: Code: | # perl -MCPAN -e shell
cpan> install X::Y |
P.S. Your specific question about Net::Pcap is covered in perl Pcap.pm. Due to the way phpBB search works, searching for "net::pcap" will bring you "net or pcap", while "net and pcap" will find only that thread and this one. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|