Solved

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

Posted on 2002-05-07
5
183 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Filtering a file to table 9 102
Perl Script - Remove column of data based on column value 2 56
Perl DBI Transactions Using Custom Module 7 48
Perl Awk Need Help 3 138
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…
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…

756 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