Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Need to install module, ftp access only

by pc88mxer (Vicar)
on Jul 21, 2008 at 22:16 UTC ( [id://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.

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://699170]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2024-04-16 19:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found