How to check for installed Perl modules on solaris?


 
Thread Tools Search this Thread
Operating Systems Solaris How to check for installed Perl modules on solaris?
# 1  
Old 10-18-2007
How to check for installed Perl modules on solaris?

Is there a quick way to check for installed perl modules on a solaris server? I found using perl -e "use Crypt:SmilieES" will work for checking one package at a time. I was wondering if there was anything else out there?
# 2  
Old 10-18-2007
If you have a perl script which attempts to use all the ones you want, shouldn't it fail gloriously, hence tell you bits are missing?
# 3  
Old 10-18-2007
That is true however, I would prefer to have a quick way of listing what packages are already installed.
# 4  
Old 10-18-2007
I found for what I was looking for. Posting it here in case someone else needs this.


for i in Crypt::CBC Crypt:SmilieES DBI DBD::Oracle DBD::mysql ; do /usr/local/perl-5.8.3/bin/perl -e "eval { require $i; }; if (\$@) { print \"$i - not found\n\"; } else { print \"$i: \$$i::VERSION\n\"}" ; done
# 5  
Old 10-22-2007
This should work.

#!/usr/bin/perl
# list installed modules
use ExtUtils::Installed;
my $instmod = ExtUtils::Installed->new();
foreach my $module ($instmod->modules()) {
my $version = $instmod->version($module) || "???";
print "$module -- $version\n";
}
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris installed Physical Processor ..how to check?

I would like to know how to identify the installed "Physical Processor" .here is the output #psrinfo -pv of from 2 systems : - System 1 The physical processor has 8 virtual processors (0-7) SPARC-T4 (chipid 0, clock 2848 MHz) -System 2 The physical processor has 8 virtual... (3 Replies)
Discussion started by: ahmedamer12
3 Replies

2. Shell Programming and Scripting

Perl Modules installation in one go.

Hi, I have a task to install a list of perl modules in several servers. It's very tedious task to install it one by one through CPAN. Can I have option in CPAN to feed that list so that it install all the modules. (0 Replies)
Discussion started by: nixhead
0 Replies

3. Shell Programming and Scripting

perl modules installation

I have installed perl in windows. Now I would like to install spreadsheet::xlsx & DateTime::Format::Excel modules(also few more) at a time instead of installing them seperately. Could you please let me know how to install more than 1 module as a batch file in windows OS ? Thanks in... (5 Replies)
Discussion started by: giridhar276
5 Replies

4. Shell Programming and Scripting

how to create custom modules in perl and how to import all modules with single command?

I have some custom functions which i want to use in perl Scripting all time. i want to How to create modules in perl and how to import them. Also if i create 15 modules and i want to > import all at once then how can i import? (0 Replies)
Discussion started by: Navrattan Bansa
0 Replies

5. Shell Programming and Scripting

How to install perl modules in Solaris

Hi All, How to install the perl modules in Solaris? pwd /eweiquu/ocsta/lib/XML-Simple-2.18 and bash-3.00# perl Makefile.PL Checking installed modules ... XML::Parser is installed, it will be used by the test suite Writing Makefile for XML::Simple and then the readme file says,you... (2 Replies)
Discussion started by: Damon_Qu
2 Replies

6. Shell Programming and Scripting

How to install perl modules

Hi. i installed perl 5.8.8.822 in my D: drive(windows xp).When im trying to install IO-Stringy.pm module( or any module for tat matter ) it is getting installed in 'c:\temp\please run installed script' folder no matter from where ever i run the ppm installation.The path variable is set to... (3 Replies)
Discussion started by: Anuj8584
3 Replies

7. UNIX for Dummies Questions & Answers

Which modules are installed for APACHE?

Is there some way I can tell which modules I have installed for APACHE? Would it be in httpd.conf? (2 Replies)
Discussion started by: mojoman
2 Replies

8. Linux

Which modules get installed with modules_install

I'm trying to build a 2.6.18 kernel for XEN (level 0), and I need to make an initrd image that will utilize our HP's raid/scsi driver (cciss.o). The driver is being built and I can see it in drivers/block/cciss.o. But when I do "make modules_install", this module is not copied into the... (2 Replies)
Discussion started by: otheus
2 Replies

9. UNIX for Dummies Questions & Answers

installing perl modules

I resulted to using /usr/sfw/bin/gmake to install my perl modules until i ran into a problem installing perl/Tk Tk-804.028 gmake: Entering directory `/export/home/Tk-804.028/pod' Sorry no HTML building yet gmake: Leaving directory `/export/home/Tk-804.028/pod' I dont unstand what the error... (2 Replies)
Discussion started by: jameskay
2 Replies

10. Shell Programming and Scripting

How to check if perl is installed?

Hi, i'm designing a unix script and i want to know if there is a shell command or a way to see if perl is installed in the system. thanks in advance! (5 Replies)
Discussion started by: kfad
5 Replies
Login or Register to Ask a Question