Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Need to install module, ftp access only

by pc88mxer (Vicar)
on Jul 21, 2008 at 22:16 UTC ( #699170=note: print w/ replies, xml ) Need Help??


in reply to Need to install module, ftp access only

The usual trick is to write a CGI script which does it for you. For instance, you could try:

#!/usr/bin/perl system("perl -MCPAN -e 'install WWW::Mechanize'");
This will work if the install procedure can be done non-interactively. You might have to configure your ~/.cpan/CPAN/MyConfig.pm first.


Comment on Re: Need to install module, ftp access only
Select or Download Code
Re^2: Need to install module, ftp access only
by Anonymous Monk on Jul 21, 2008 at 22:51 UTC
    That was my first thought... mkdir /.cpan: Permission denied at /usr/lib/perl5/5.8.5/CPAN.pm line 1258
      It's trying to install the module somewhere you don't have permission, so you simply need to tell the CPAN module to install it somewhere else. You can either set up an appropriate configuration file, as pc88mxer describes, or else set the PREFIX environment variable to tell the CPAN module where you want it to install the module. See Re^2: Perl module for a sample script.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://699170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2014-09-03 06:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (35 votes), past polls