Solved

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

Posted on 2002-05-07
5
162 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
ID: 6994195
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
ID: 6995317
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
ID: 7047051
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
ID: 7047110
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
ID: 8303304
Force Accepted

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

911 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

25 Experts available now in Live!

Get 1:1 Help Now