Web Hosting Talk







View Full Version : Finding Perl Module


Fremont Servers
07-26-2001, 09:20 PM
Hello,

Does anyone know where is a good spot to get perl modules?

If possible, do you know the url to get these modules?

Module DBI
Module LWP::Simple
Module LWP::UserAgent

Thank you very much in advance! :D

elsmore1
07-26-2001, 10:13 PM
Find modules here: http://search.cpan.org

For the LWP Modules - http://search.cpan.org/search?dist=libwww-perl

For DBI - http://search.cpan.org/search?dist=DBI


Originally posted by Asia
Hello,

Does anyone know where is a good spot to get perl modules?

Fremont Servers
07-26-2001, 10:23 PM
Hello,

How do you install these modules?

Like for LWP module, do I download and ftp libwww-perl-5.53_94.tar.gz into the server.

What do I do after that?

Lets take LWP: Simple as an example.

elsmore1
07-26-2001, 10:49 PM
The process to install the modules differs slightly if you are not able to install them as root (super user).


First off, are you sure that they are not already on the server? These modules are very common and usually installed already. Assuing that they are not already installed,

1. upload the file .tar.gz file to the server
2. unzip/tar them
3. Install them

If you don't have root acess, you will need to specify the directory to install into.

If you need step-by-step instructions, feel free to email me. I'll see what I can do to help.

JonnyQuags
07-27-2001, 01:40 AM
You may be able to install it easily through shell with this command:

perl -MCPAN -e 'install LWP::Simple'

Fremont Servers
07-27-2001, 11:08 PM
Hello,

So which one is it?

--------
perl Makefile.PL
make
make test
make install
--------

OR

--------
perl -MCPAN -e 'install LWP::Simple'
--------

remarkable
07-27-2001, 11:23 PM
Use CPAN.. goto http://www.cpan.org for details.

Originally posted by Asia
Hello,

So which one is it?

--------
perl Makefile.PL
make
make test
make install
--------

OR

--------
perl -MCPAN -e 'install LWP::Simple'
--------

elsmore1
07-28-2001, 11:49 AM
So which one is it?

---------
perl Makefile.PL
make
make test
make install
----------


or

---------
perl -MCPAN -e 'install LWP::Simple'
------------



If you have the CPAN module installed, it simplifies the installation of most other modules. But, like most other automated installers, it -may- complicate things by performing unwanted actions in addition to installing the requested modules. Also, if you have libraries or other dependencies required for the modules you are installing which are in "non-standard" locations, the automated installer may fail, in which case it could be real handy to know how to install modules yourself.

Of course, if you don't already have the CPAN module installed you will need to know how to install modules before you will be able to install the module installer. :)

As with most tools that attempt to simplify administrative tasks on the server, (control panels, wysiwyg HTML editors, installation utilities etc) it is often a good idea to know how to do what the tool is attempting to simplify for you before you actually put your trust in the tool to do it for you. That way, you at least have an idea if the tool is doing things the way they ought to be done, and in many cases, you will find that it is easier (or just as easy) to do it yourself than to use the so-called simplification tool.

In this case, installing a few perl modules, assuming the CPAN module is installed already, it may save a few key strokes. It may accomplish what is wanted, and may not cause any problems. But it is a pretty simple task to do it by hand too, and knowing how to do it by hand would IMO be much more valuable than the few minutes/keystrokes saved by using the CPAN module.