LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-17-2010, 09:06 AM   #1
rodriguez
LQ Newbie
 
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
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.
 
Old 02-17-2010, 09:39 AM   #2
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 249Reputation: 249Reputation: 249
Is the protocol part of your proxy URI ?
It should be http://proxy.uniovi.es or ftp://proxy.uniovi.es
Don't edit the FTP.pm because that is dealing with environment variables. You have to set the variables correctly in the first place.

regards

Alan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
issues with cpan perl modules reticent Debian 12 01-29-2011 08:30 AM
CPAN and PERL Modules metallica1973 Programming 4 02-01-2008 10:14 PM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 10:30 PM
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 08:31 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 01:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration