Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to install Net::Pcap
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Fri Nov 08, 2002 5:55 pm    Post subject: How to install Net::Pcap Reply with quote

I'm trying run a program that needs 'Net::Pcap'. How do I go about installing it?
Back to top
View user's profile Send private message
lx
Veteran
Veteran


Joined: 28 May 2002
Posts: 1012
Location: Netherlands

PostPosted: Fri Nov 08, 2002 8:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
alexwade
n00b
n00b


Joined: 22 Aug 2002
Posts: 47
Location: Orlando, FL

PostPosted: Fri Nov 08, 2002 8:54 pm    Post subject: More specifically Reply with quote

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
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Nov 08, 2002 9:40 pm    Post subject: Re: More specifically Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum