in reply to how to install a perl module without telnet

Hi All Does anyone know how to install a perl module without telnet because my hosting company doesnt allow me to telnet into their system.

Download and unpack the module on your local system. Then, copy (FTP?) the module to a directory on the server, so that Foo::Bar is Foo/Bar.pm.
If you do this in the same directory as your script, you can use it right away. If not, you'll have to modify @INC. (easiest: use lib 'path';)

Good luck!

44696420796F7520732F2F2F65206F
7220756E7061636B3F202F6D736720
6D6521203A29202D2D204A75657264

  • Comment on Re: how to install a perl module without telnet

Replies are listed 'Best First'.
Re: Re: how to install a perl module without telnet
by Kanji (Parson) on Mar 12, 2002 at 12:46 UTC

    That doesn't always work, especially if the module isn't pure Perl!

    However, if you can run scripts (why else would you be uploading modules? :)), you can always do something whacky like create a CGI to handle all your server-side needs...

    #!/usr/bin/perl use CGI::Carp qw/ fatalsToBrowser /; $|++; print "Content-Type: text/plain\n\n"; system("perl Makefile.PL ..."); # etc.

    ... which should work if a compiler is available, but can get rather tedious; especially if you encounter a lot of errors or need to work around manual interaction.

        --k.


      However, if you can run scripts (why else would you be uploading modules? :)), you can always do something whacky like create a CGI to handle all your server-side needs...

      If you can open sockets for listening, it's easier to get yourself a shell after all ;)

      Besides, installing non-pure-perl modules on a system that you can't easily access is such a hassle I haven't even tried to figure out how it's done. Asking the system administrator to install a specific module works most of the time...

      U28geW91IGNhbiBhbGwgcm90MTMgY
      W5kIHBhY2soKS4gQnV0IGRvIHlvdS
      ByZWNvZ25pc2UgQmFzZTY0IHdoZW4
      geW91IHNlZSBpdD8gIC0tIEp1ZXJk