Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

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/ 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/ 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?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (2)
As of 2023-03-24 07:11 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (60 votes). Check out past polls.