OT: What Perl Modules are installed?
Hello all, how do you test to see what perl modules are installed? Is there a quick command that does this for Perl? Something like how we can do "rpm -qa" to see all rpm's installed... many thanks, Ahbaid
* Ahbaid Gaffoor <ahbaid@att.net> [12-23-03 17:02]:
how do you test to see what perl modules are installed?
Is there a quick command that does this for Perl?
Something like how we can do "rpm -qa" to see all rpm's installed...
try: # perl -MCPAN -e shell cpan> i -- Patrick Shanahan Registered Linux User #207535 http://wahoo.no-ip.org @ http://counter.li.org
Ahbaid Gaffoor wrote:
Hello all,
how do you test to see what perl modules are installed?
Is there a quick command that does this for Perl?
Something like how we can do "rpm -qa" to see all rpm's installed...
many thanks,
Ahbaid
I had some problems accessing the perl modules using webmin, on a closer look, I found they were in /usr/lib/perl5/vendor_perl (strange place), so I copied them into /usr/lib/perl5/site_perl, now webmin can see them. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 03:02:06 +0000]:
I had some problems accessing the perl modules using webmin, on a closer look, I found they were in /usr/lib/perl5/vendor_perl (strange place),
Not strange. It's the correct place for modules from the distribution. site_perl is for site specific modules that come from other sources.
so I copied them into /usr/lib/perl5/site_perl, now webmin can see them.
If webmin won't find modules in vendor_perl it's broken and needs fixing. Philipp
http://www.scriptsolutions.com/programs/free/perldiver/perldiver.cgi You could download the free script (that dives in and lists all perl modules available in it's paths) of the above demo and see if it will help to fix webmin. Philipp Thomas wrote:
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 03:02:06 +0000]:
I had some problems accessing the perl modules using webmin, on a closer look, I found they were in /usr/lib/perl5/vendor_perl (strange place),
Not strange. It's the correct place for modules from the distribution. site_perl is for site specific modules that come from other sources.
so I copied them into /usr/lib/perl5/site_perl, now webmin can see them.
If webmin won't find modules in vendor_perl it's broken and needs fixing.
Philipp
http://www.scriptsolutions.com/programs/free/perldiver/perldiver.cgi
You could download the free script (that dives in and lists all perl modules available in it's paths) of the above demo and see if it will help to fix webmin. I did but I can't get it to work. Their instructions just said to copy to the cgi-bin directory and allow execute for perldiver.cgi. when I
Gregory Baboolal wrote: tried to run it by browsing to http://localhost/cgi-bin/perldiver.cgi I just got an error saying "server encountered an internal error" and "premature end of script headers: perldiver.cgi" this seems like a really cool tool and I would like to try it since it might help me to learn a few things about Perl on my system. Has anyone used this? what am I missing? I found this thread while looking for some Perl help for a problem I am having with Perl and Webmin. I tried upgrading perl so I downloaded and installed 5.8.3. It seemed to install ok and typing perl -version gives me the new version but when I try to use Webmin to look at mysql, it gives a Perl error message and mentions a problem with a module that is in the old path. Therefore, I am trying to find more info about upgrading and tampering with the path(s) for Perl. Damon REgister
Philipp Thomas wrote:
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 03:02:06 +0000]:
I had some problems accessing the perl modules using webmin, on a closer look, I found they were in /usr/lib/perl5/vendor_perl (strange place),
Not strange. It's the correct place for modules from the distribution. site_perl is for site specific modules that come from other sources.
so I copied them into /usr/lib/perl5/site_perl, now webmin can see them.
If webmin won't find modules in vendor_perl it's broken and needs fixing.
Philipp
Probably so, but I needed to avoid duplication and the need was NOW, I shall have a look at webmin, earlier versions had no trouble, so I was not aware of where they were looking for modules, this latest one seem to check only site_perl. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 19:00:06 +0000]:
I shall have a look at webmin, earlier versions had no trouble, so I was not aware of where they were looking for modules, this latest one seem to check only site_perl.
SUSE's change to vendor_perl came with 9.0, so maybe webmin always neglected vendor_perl and it only shows now? Philipp
Philipp Thomas wrote:
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 19:00:06 +0000]:
I shall have a look at webmin, earlier versions had no trouble, so I was not aware of where they were looking for modules, this latest one seem to check only site_perl.
SUSE's change to vendor_perl came with 9.0, so maybe webmin always neglected vendor_perl and it only shows now?
Philipp
Thanks, I shall see if I can email the webmin team with that info. The version of webmin I have was the first they issued ( -1.121) that works with 9.0, they can perhaps fix it in the next version. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
Sid Boyce wrote:
Philipp Thomas wrote:
Sid Boyce <sboyce@blueyonder.co.uk> [Wed, 24 Dec 2003 19:00:06 +0000]:
I shall have a look at webmin, earlier versions had no trouble, so I was not aware of where they were looking for modules, this latest one seem to check only site_perl.
SUSE's change to vendor_perl came with 9.0, so maybe webmin always neglected vendor_perl and it only shows now?
Philipp
Thanks, I shall see if I can email the webmin team with that info. The version of webmin I have was the first they issued ( -1.121) that works with 9.0, they can perhaps fix it in the next version. Regards Sid.
I reported the problem to the webmin bug-tracking system and got a reply saying it will be fixed in the next version. Regards Sid. -- Sid Boyce .... Hamradio G3VBV and keen Flyer Linux Only Shop.
Ahbaid Gaffoor wrote:
how do you test to see what perl modules are installed?
All of them? Very quick and very dirty find /usr/lib/perl5 | egrep '\.pm' If you're interested in modules that aren't part of core Perl --- 8< --- use ExtUtils::Installed; my $installed = ExtUtils::Installed->new(); foreach (grep(!/^Perl$/, $installed->modules())) { print "$_ [".($installed->version($_) || 'unknown')."]\n"; } --- 8< --- sjb
On Tue 23 December 2003 22:56, Ahbaid Gaffoor wrote:
Hello all,
how do you test to see what perl modules are installed?
Is there a quick command that does this for Perl?
Something like how we can do "rpm -qa" to see all rpm's installed...
many thanks,
Ahbaid
Try: perl -MExtUtils::Installed -le 'print for ExtUtils::Installed->new->modules' -- GPG fingerprint = 3D45 5509 D380 26A4 523E A9D8 A66A 5F38 CA43 BB0E
participants (9)
-
Ahbaid Gaffoor
-
Damon Register
-
Gregory Baboolal
-
jalal
-
Michael Galloway
-
Patrick Shanahan
-
Philipp Thomas
-
Sid Boyce
-
sjb