buzzingstocks has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I am a webmaster and i got to install some modules which my hosting service is not providing. How can install in my own webspace? i dont have telnet access. is it possible to do it by writing any cgi program? please help. thanx in advance rgds, uttam k ronanki http://www.buzzingstocks.com

Replies are listed 'Best First'.
Re: Installing Modules without telnet??
by antirice (Priest) on Aug 27, 2003 at 07:38 UTC

    CPAN actually has a programmer's interface for installing modules. More information on how to use it is available here.

    Hope this helps.

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

Re: Installing Modules without telnet??
by arthas (Hermit) on Aug 27, 2003 at 08:01 UTC

    You can install them on your machine and then upload them to the server. This will work without problems if the modules are Pure Perl (no XS involved).

    If you have XS modules it's just the same, but your local machine must have the same CPU style and run the same family of operating systems as the server.

    Hope this helps!

    Michele.

Re: Installing Modules without telnet??
by helgi (Hermit) on Aug 27, 2003 at 12:10 UTC
    Your Question is Frequently Asked.

    As such it is answered in the perlFAQ that comes bundled with the documentation in every distribution of Perl.

    Learning to use the bundled documentation is one of the most useful things for a Perl programmer to learn.

    To search and browse the Perl documentation, you use the perldoc program that comes bundled with every distribution of Perl.

    Some particularly useful commands to know are:

    perldoc perl perldoc perldoc perldoc -f FUNCTION perldoc -q KEYWORD
    In your case, you should read:

    perldoc -q "How do I keep my own module/library directory?"


    --
    Regards,
    Helgi Briem
    hbriem AT simnet DOT is

Re: Installing Modules without telnet??
by sgifford (Prior) on Aug 27, 2003 at 22:41 UTC
    I do this by uploading a small shell script to build and install the module, then running it from CGI. My standard one is like this:
    #!/bin/bash -x printf "Content-type: text/plain\n\n" exec 2>&1 H=/home/webuser export PERL5LIB="$H/lib/perl5" MOD=MailTools-1.58 cd "$H/src" tar xvzf "$MOD.tar.gz" cd "$MOD" make clean perl Makefile.PL PREFIX="$H" LIB="$H/lib/perl5" && make && make test && make install

    I've posted this a few times; I should probably figure out how to get it into one of the more permanent sections here...