Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Perl script and Getopt
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
kimchi
n00b
n00b


Joined: 04 Aug 2002
Posts: 12
Location: bmore, MD

PostPosted: Wed Jan 22, 2003 7:05 pm    Post subject: Perl script and Getopt Reply with quote

I'm hving trouble getting a perl script I downloaded to use Getopt::Simple

Here's the error message:
Quote:

Can't locate Getopt/Simple.pm in @INC (@INC contains: /usr/lib/perl5/5.6.1/i686-linux /usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux /usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.6.1/i686-linux /usr/lib/perl5/vendor_perl/5.6.1 /usr/lib/perl5/vendor_perl .) at ./adddir.pl line 28.
BEGIN failed--compilation aborted at ./adddir.pl line 28.


I relieved some earlier similar errors by emerging libwww-perl. I have perl 5.6.1-r10 emerged. As far as I can tell Getopt is part of the core module set, although I admit I know very little about perl in general. Does anyone know which perl module I should emerge? Or does this problem run deeper? Or should I just download the module from cpan or whatever and stop worring about "the right way"? : )
Back to top
View user's profile Send private message
Rider
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2003
Posts: 85
Location: Berne, Switzerland

PostPosted: Wed Jan 22, 2003 8:07 pm    Post subject: Re: Perl script and Getopt Reply with quote

hi!

kimchi wrote:
I'm hving trouble getting a perl script I downloaded to use Getopt::Simple

Here's the error message:

Quote:

Can't locate Getopt/Simple.pm in @INC



What does 'find /usr/lib -name Simple.pm' return? can it find the module?
Back to top
View user's profile Send private message
kimchi
n00b
n00b


Joined: 04 Aug 2002
Posts: 12
Location: bmore, MD

PostPosted: Fri Jan 24, 2003 2:36 pm    Post subject: Reply with quote

That returns

Quote:

blue@unagi blue $ find /usr/lib -name Simple.pm
/usr/lib/perl5/site_perl/5.6.1/Test/Simple.pm
/usr/lib/perl5/site_perl/5.6.1/LWP/Simple.pm


which I'm guessing is not the same as Getopt::Simple.
Back to top
View user's profile Send private message
kimchi
n00b
n00b


Joined: 04 Aug 2002
Posts: 12
Location: bmore, MD

PostPosted: Fri Jan 24, 2003 3:10 pm    Post subject: Reply with quote

OK, a made a maligned ebuild which grabbed Getopt::Simple and installed it (albeit in the wrong directory : ) and it works now. I'm guessing that since most of the ebuilds refer to a single module, when I grepped for Getopt there's not an ebuild that pulls it in. I had assumed there were overarching ebuilds instead, i.e. the ebuild grabs a tgz that has lots of modules in it instead of just one.

If this script is extremely useful, I'll try to make a good ebuild for Getopt, but not until I know more about the system.

Thanks =]
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Fri Jan 24, 2003 6:54 pm    Post subject: Reply with quote

Have a look at g-cpan.pl.
_________________
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