in reply to Re: how to install a perl module without telnet
in thread how to install a perl module without telnet

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.


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

    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