How do I find if a module is installed ?
How do I find if a module is installed ?
am 11.04.2006 03:40:05 von Aaron Gray
Hi,
New to Perl. And want to know if "Pod::Simple" is installed on my RedHat 9
machine ?
How do I check if a module is installed and also how do I get a list of
installed modules ?
Many thanks in advance,
Aaron
Re: How do I find if a module is installed ?
am 11.04.2006 08:49:29 von someone
Aaron Gray wrote:
>
> New to Perl. And want to know if "Pod::Simple" is installed on my RedHat 9
> machine ?
>
> How do I check if a module is installed and also how do I get a list of
> installed modules ?
perldoc -q "How do I find which modules are installed on my system"
John
--
use Perl;
program
fulfillment
Re: How do I find if a module is installed ?
am 11.04.2006 13:47:43 von Paul Lalli
Aaron Gray wrote:
> New to Perl. And want to know if "Pod::Simple" is installed on my RedHat 9
> machine ?
Run this at the command line:
perl -MPod::Simple -e1
If that gives you a "Cannot locate Pod/Simple.pm in @INC (@INC
contains....)" error, you don't have the module (or at least, don't
have it somewhere Perl knows about). If it gives you nothing at all,
you have it.
> How do I check if a module is installed and also how do I get a list of
> installed modules ?
perldoc perlmodlib
perldoc ExtUtils::Installed
Paul Lalli
Re: How do I find if a module is installed ?
am 11.04.2006 18:25:04 von Aaron Gray
"Paul Lalli" wrote in message
news:1144756063.683904.96790@u72g2000cwu.googlegroups.com...
> Aaron Gray wrote:
>> New to Perl. And want to know if "Pod::Simple" is installed on my RedHat
>> 9
>> machine ?
>
> Run this at the command line:
>
> perl -MPod::Simple -e1
>
> If that gives you a "Cannot locate Pod/Simple.pm in @INC (@INC
> contains....)" error, you don't have the module (or at least, don't
> have it somewhere Perl knows about). If it gives you nothing at all,
> you have it.
Okay that works :)
>> How do I check if a module is installed and also how do I get a list of
>> installed modules ?
>
> perldoc perlmodlib
Pod/Perldoc/GetOptsOO.pm did not return a true value at
/usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
line 28.
Compilation failed in require at /usr/bin/perldoc line 8.
BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
My other systems giving :-
Can't locate Pod/Simple.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 .) at
/usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
35.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
Got a 0-length file from /usr/lib/perl5/5.8.0/pod/perlmodlib.pod via
Pod::Perldoc::ToMan!?
> perldoc ExtUtils::Installed
Pod/Perldoc/GetOptsOO.pm did not return a true value at
/usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
line 28.
Compilation failed in require at /usr/bin/perldoc line 8.
BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
Again my other systems giving :-
Can't locate Pod/Simple.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 .) at
/usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
35.
Compilation failed in require at /usr/bin/pod2man line 19.
BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
Got a 0-length file from /usr/lib/perl5/5.8.0/ExtUtils/Installed.pm via
Pod::Perldoc::ToMan!?
'Can't locate Pod/Simple.pm' ??? I am confused.
Looks like I have a bad Perl instillation on both my RedHat 9 machines ???
Should Pod::Simple be installed on a base Perl instillation ?
Aaron
Re: How do I find if a module is installed ?
am 11.04.2006 21:02:55 von Joe Smith
Aaron Gray wrote:
> 'Can't locate Pod/Simple.pm' ??? I am confused.
> Looks like I have a bad Perl instillation on both my RedHat 9 machines ???
> Should Pod::Simple be installed on a base Perl instillation ?
Pod::Simple is optional - it looks like /usr/bin/perldoc or Pod::Perldoc
may be requiring it in error. It's not needed on Fedora Linux.
> Pod/Perldoc/GetOptsOO.pm did not return a true value at
> /usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
That indicates a truncated file. It should have "1;" at the end.
fedora-fc4% tail -4 /usr/lib/perl5/5.8.*/Pod/Perldoc/GetOptsOO.pm
}
1;
-Joe
Re: How do I find if a module is installed ?
am 11.04.2006 21:26:01 von Paul Lalli
Aaron Gray wrote:
> "Paul Lalli" wrote in message
> news:1144756063.683904.96790@u72g2000cwu.googlegroups.com...
> > perldoc perlmodlib
>
> Pod/Perldoc/GetOptsOO.pm did not return a true value at
> /usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
> line 28.
> Compilation failed in require at /usr/bin/perldoc line 8.
> BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
>
> My other systems giving :-
>
> Can't locate Pod/Simple.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 .) at
> /usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
> 35.
> Compilation failed in require at /usr/bin/pod2man line 19.
> BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
> Got a 0-length file from /usr/lib/perl5/5.8.0/pod/perlmodlib.pod via
> Pod::Perldoc::ToMan!?
>
> > perldoc ExtUtils::Installed
>
> Pod/Perldoc/GetOptsOO.pm did not return a true value at
> /usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
> line 28.
> Compilation failed in require at /usr/bin/perldoc line 8.
> BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
>
> Again my other systems giving :-
>
> Can't locate Pod/Simple.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 .) at
> /usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
> 35.
> Compilation failed in require at /usr/bin/pod2man line 19.
> BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
> Got a 0-length file from /usr/lib/perl5/5.8.0/ExtUtils/Installed.pm via
> Pod::Perldoc::ToMan!?
>
> 'Can't locate Pod/Simple.pm' ??? I am confused.
>
> Looks like I have a bad Perl instillation on both my RedHat 9 machines ???
At the very least, the documentation part of the install seems FUBAR.
> Should Pod::Simple be installed on a base Perl instillation ?
It's not listed in my 5.6.1 copy of perlmodlib, so I'd say no. Again,
sounds like something's wrong with your documentation installation.
Until you or your sysadmin get that fixed, you can always view the
relevant documentation on the web:
http://perldoc.perl.org/ExtUtils/Installed.html
You might also try simply
man perlmodlib
and see if that works any better for you...
Paul Lalli
Re: How do I find if a module is installed ?
am 28.04.2006 14:44:29 von Sharon and Allen Sutton
When a Perl Module has been installed from CPAN, the install scripts will
append the name of the module to the local module list that can be viewed by
executing
perldoc perllocal
Try this one!
"Paul Lalli" wrote in message
news:1144783561.129253.186840@u72g2000cwu.googlegroups.com.. .
> Aaron Gray wrote:
>> "Paul Lalli" wrote in message
>> news:1144756063.683904.96790@u72g2000cwu.googlegroups.com...
>> > perldoc perlmodlib
>>
>> Pod/Perldoc/GetOptsOO.pm did not return a true value at
>> /usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
>> line 28.
>> Compilation failed in require at /usr/bin/perldoc line 8.
>> BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
>>
>> My other systems giving :-
>>
>> Can't locate Pod/Simple.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 .) at
>> /usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
>> 35.
>> Compilation failed in require at /usr/bin/pod2man line 19.
>> BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
>> Got a 0-length file from /usr/lib/perl5/5.8.0/pod/perlmodlib.pod via
>> Pod::Perldoc::ToMan!?
>>
>> > perldoc ExtUtils::Installed
>>
>> Pod/Perldoc/GetOptsOO.pm did not return a true value at
>> /usr/lib/perl5/5.8.0/Pod/Perldoc.pm line 28.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Perldoc.pm
>> line 28.
>> Compilation failed in require at /usr/bin/perldoc line 8.
>> BEGIN failed--compilation aborted at /usr/bin/perldoc line 8.
>>
>> Again my other systems giving :-
>>
>> Can't locate Pod/Simple.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 .) at
>> /usr/lib/perl5/5.8.0/Pod/Man.pm line 35.
>> BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.0/Pod/Man.pm line
>> 35.
>> Compilation failed in require at /usr/bin/pod2man line 19.
>> BEGIN failed--compilation aborted at /usr/bin/pod2man line 19.
>> Got a 0-length file from /usr/lib/perl5/5.8.0/ExtUtils/Installed.pm via
>> Pod::Perldoc::ToMan!?
>>
>> 'Can't locate Pod/Simple.pm' ??? I am confused.
>>
>> Looks like I have a bad Perl instillation on both my RedHat 9 machines
>> ???
>
> At the very least, the documentation part of the install seems FUBAR.
>
>> Should Pod::Simple be installed on a base Perl instillation ?
>
> It's not listed in my 5.6.1 copy of perlmodlib, so I'd say no. Again,
> sounds like something's wrong with your documentation installation.
>
> Until you or your sysadmin get that fixed, you can always view the
> relevant documentation on the web:
>
> http://perldoc.perl.org/ExtUtils/Installed.html
>
> You might also try simply
> man perlmodlib
> and see if that works any better for you...
>
> Paul Lalli
>