Problem installing CPAN modules (perl) and proxy settings
Hi all,
Here is my problem:
I work with the BioPerl project. At first, I installed cpan modules without any problem,
(eg.) sudo cpan -i CPAN::Module
I've a proxy connection (university) and I'd configured my proxy settings correctly:
perl -MCPAN -eshell
In the beginning it worked, but I don't know why it doens't work today. Here is the outline:
fernando@fer-laptop[fernando] sudo cpan -i Algorithm::Cluster
CPAN: Storable loaded ok (v2.15)
Going to read '/home/fernando/.cpan/Metadata'
Database was generated on Mon, 01 Feb 2010 22:42:20 GMT
CPAN: LWP::UserAgent loaded ok (v5.834)
Proxy must be specified as absolute URI; 'proxy.uniovi.es' is not at /usr/local/share/perl/5.8.8/CPAN/FTP.pm line 333
Here are the lines (332-339) of FTP.pm
my($var);
$Ua->proxy('ftp', $var)
if $var = $CPAN::Config->{ftp_proxy} || $ENV{ftp_proxy};
$Ua->proxy('http', $var)
if $var = $CPAN::Config->{http_proxy} || $ENV{http_proxy};
$Ua->no_proxy($var)
if $var = $CPAN::Config->{no_proxy} || $ENV{no_proxy};
}
Should I change this lines from the FTP.pm module, or any other possibility.
Thank you.
|