Gossamer Forum
Home : General : Perl Programming :

Name and version of Perl modules

Quote Reply
Name and version of Perl modules
Is it possible to get the name and version of all installed Perl modules from my ISPs webserver? How can I get this information?

Rene
Quote Reply
Re: Name and version of Perl modules In reply to
I would also like to find out what modules are installed on HyperMart.net ...or at least in what directory they might possible be installed.

This is the root:
Code:
total 10700
drwxr-xr-x 21 root wheel 1024 Jul 19 16:55 .
drwxr-xr-x 21 root wheel 1024 Jul 19 16:55 ..
-rw-r--r-- 1 root wheel 9 Jun 29 11:45 .base-4.0
drwx------ 2 root wheel 512 Jul 19 16:54 .mod
-rw-r--r-- 1 root wheel 104 Jun 11 1998 .profile
-rw-r--r-- 1 root wheel 1 Jun 23 22:30 .timestamp
drwxr-xr-x 2 root wheel 512 Jun 10 1998 a
dr-xr-xr-x 2 root wheel 512 Jun 10 1998 amd
drwxr-xr-x 3 root wheel 1024 Jul 19 16:54 bin
-r-xr-xr-x 1 bin bin 65041 Jul 19 16:54 boot
-r-xr-xr-x 1 root wheel 1054924 Jul 19 17:05 bsd
-rwxr-xr-x 1 root wheel 1670561 Jul 19 16:55 bsd.4.0
-rwxr-xr-x 1 root wheel 1634521 Feb 25 06:56 bsd.generic
drwxr-xr-x 2 root wheel 512 Jun 10 1998 cdrom
drwxr-xr-x 3 root wheel 512 Jul 2 13:21 data1
lrwxr-xr-x 1 root wheel 6 Jul 19 16:55 data2 -> /data1
drwxr-xr-x 4 root wheel 10752 Jul 19 16:52 dev
-rw------- 1 root wheel 131072 Jul 14 08:01 du.core
drwxr-xr-x 20 root wheel 2560 Jul 19 16:57 etc
drwxr-xr-x 8 root wheel 512 Jul 2 12:40 export
lrwxr-xr-x 1 root wheel 12 Jul 19 16:55 home -> /export/home
-rw------- 1 root wheel 131072 Jul 14 07:48 hostname.core
drwxr-xr-x 2 root wheel 512 Jun 10 1998 mnt
drwxr-xr-x 10 root wheel 512 Feb 22 15:26 nsr
drwxr-xr-x 10 root wheel 1024 Jul 17 15:13 root
drwxr-xr-x 3 root wheel 1536 Jul 19 16:54 sbin
drwxr-xr-x 7 root wheel 512 Jun 12 1998 sco
drwxr-xr-x 3 root wheel 1536 Jul 19 16:54 shlib
drwxr-xr-x 3 root wheel 512 Jul 19 16:54 stand
lrwxr-xr-x 1 root wheel 13 Jul 19 16:55 stats -> /export/stats
lrwxr-xr-x 1 root wheel 11 Jul 19 16:55 sys -> usr/src/sys
drwxrwxrwt 3 root wheel 512 Jul 20 01:34 tmp
-rw------- 1 root wheel 696320 Jul 14 08:12 upload.pl.core
drwxr-xr-x 17 root wheel 512 Jun 24 03:16 usr
drwxr-xr-x 19 root wheel 512 Jun 29 11:52 var
Where can they be?


Thank you in advance!

Pasha

------------------
find.virtualave.net
Quote Reply
Re: Name and version of Perl modules In reply to
Those modules are most likely located in an inaccessible directory. Have you contacted your ISP?

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: Name and version of Perl modules In reply to
Actually they are definately accessible as the web server will need to access them. You can find out where they are by looking at @INC. i.e.:

#!/usr/local/bin/perl

print "Content-type: text/html\n\n";
foreach $dir (@INC) {
print "LIBRARY: $dir <br>\n";
}

should print out the directories for you.

Also, it's common practice to define a $VERSION variable. So to see the version of DBI, do:

use DBI;
print "VERSION: $DBI::VERSION\n\n";

Cheers,

Alex
Quote Reply
Re: Name and version of Perl modules In reply to
Alex,

When I executed your script, this was the output:
Code:
LIBRARY: /usr/libdata/perl
LIBRARY: /usr/libdata/perl/include
LIBRARY: .
I looked into these directories, but couldn't find any modules there.

I also found out that Hypermart has problems with CGI.pm module (or may be it's not installed?). Here're the errors:
Code:
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 90, next 2 tokens "use CGI"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 134, next 2 tokens "new CGI"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 136, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 138, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 140, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 141, next 2 tokens "s/%([\dA-Fa-f]{2})/pack("C", hex($1))/eisg"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 145, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 153, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 154, next 2 tokens "->"
syntax error in file /data1/hypermart.net/pg13/cgi-bin/pod.cgi at line 155, next 2 tokens "->"
/data1/hypermart.net/pg13/cgi-bin/pod.cgi has too many errors.
URL: http://pg13.hypermart.net/cgi-bin/pod.cgi

Has anybody else had experienced problems with CGI module on HyperMart servers?

Thank you Alex.


Pasha

------------------
find.virtualave.net
Quote Reply
Re: Name and version of Perl modules In reply to
First of all, I'm pretty sure that Hypermart has all the modules installed that that script requires. If you want to find out for sure check out:

http://wss.hypermart.net/hm

The webmaster wrote a program that allows you to search for modules installed on the Hypermart servers. He also has a couple of other useful Hypermart-specific programs as well.

--Cade Ekblad-Frank
Quote Reply
Re: Name and version of Perl modules In reply to
Cade, thanks for the link! Very useful information on that site Smile
By using the utilities provided on that site, I found that HyperMart does not have URI and HTTP modules installed; sad news Frown I was planing to use them full time.
Any way, is there a way to install them? Wink

Thank you again.

Pasha

------------------
find.virtualave.net
Quote Reply
Re: Name and version of Perl modules In reply to
Finally got everything working. Smile

Thank you for all your help guys!
Here it is: http://pg13.hypermart.net


Regards,

Pasha

------------------
find.virtualave.net