Solved

How can I find what modules/libraries are installed on my server?

Posted on 2002-05-07
5
151 Views
Last Modified: 2010-03-05
I would like to like to implement an image thumbnailer on my web site.  The perl scripts I have found require libraries/modules such as ImageMagick/GD module
to be installed on the server.  My hosting service has no support.  How can I find out which moduals/libraries (if any) are installed on my host's server?
0
Comment
Question by:hankknight
5 Comments
 
LVL 8

Accepted Solution

by:
bebonham earned 50 total points
Comment Utility
this is something I use myself.
it will put the names of all the modules in a file called myMods.dat

enjoy


use strict;
my $j;
my $i;
my @files;
my @mList;
my @dList;
for($i=0;$i<$#INC;$i++)
{
opendir MDIR, $INC[$i] or warn "I can't open that dir $!\n";
@files=readdir MDIR;
foreach(@files)
{if($_=~/\.pm$/)
{
push(@mList,$_);
push @dList,$INC[$i]
}}}

open FILE, ">myMods.dat";
print FILE "module\t\tfully qualified path\n";
print FILE "======\t\t====================\n";
for($j=0;$j<$#mList;$j++)
{
print FILE $mList[$j] . "\t\t" . $dList[$j] . "\n";
}
0
 
LVL 19

Expert Comment

by:Kim Ryan
Comment Utility
There is a useful tool called Perl Diver http://www.scriptsolutions.com/programs/free/perldiver/ . The code is very badly formatted, but it gives a good snapshot of the Perl setup, versions and modules installed on your host.
0
 

Expert Comment

by:mstone
Comment Utility
Take a look at -

http://www.muenster.de/~hillebra/prlscrpt/findmod.htm

It is a perl script that will list all perl modules installed on the server where this script is installed.

Mike
0
 
LVL 8

Expert Comment

by:bebonham
Comment Utility
Mike!

1. don't lock questions that have already been answerd twice.

2. Yikes!  you have an abyssmal grading record.


--------------
0
 

Expert Comment

by:SpideyMod
Comment Utility
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Perl count the hash for print 4 155
Perl, group, sort, count question 6 107
Filtering a file to table 9 98
Perl script to parse xml file 2 96
I have been pestered over the years to produce and distribute regular data extracts, and often the request have explicitly requested the data be emailed as an Excel attachement; specifically Excel, as it appears: CSV files confuse (no Red or Green h…
In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now