View previous topic :: View next topic |
Author |
Message |
kimchi n00b
Joined: 04 Aug 2002 Posts: 12 Location: bmore, MD
|
Posted: Wed Jan 22, 2003 7:05 pm Post subject: Perl script and Getopt |
|
|
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 |
|
|
Rider Tux's lil' helper
Joined: 07 Jan 2003 Posts: 85 Location: Berne, Switzerland
|
Posted: Wed Jan 22, 2003 8:07 pm Post subject: Re: Perl script and Getopt |
|
|
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 |
|
|
kimchi n00b
Joined: 04 Aug 2002 Posts: 12 Location: bmore, MD
|
Posted: Fri Jan 24, 2003 2:36 pm Post subject: |
|
|
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 |
|
|
kimchi n00b
Joined: 04 Aug 2002 Posts: 12 Location: bmore, MD
|
Posted: Fri Jan 24, 2003 3:10 pm Post subject: |
|
|
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 |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Fri Jan 24, 2003 6:54 pm Post subject: |
|
|
Have a look at g-cpan.pl. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
|