Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 02-17-2010, 08:06 AM   #1
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; '' is not at /usr/local/share/perl/5.8.8/CPAN/ line 333

Here are the lines (332-339) of

$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};
if $var = $CPAN::Config->{no_proxy} || $ENV{no_proxy};

Should I change this lines from the module, or any other possibility.

Thank you.
Old 02-17-2010, 08:39 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

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




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 07:30 AM
CPAN and PERL Modules metallica1973 Programming 4 02-01-2008 09:14 PM
"cc1: error: invalid option 'tune=i686'" while installing Perl modules via CPAN scuzzman Programming 12 08-21-2006 09:30 PM
load perl CPAN modules sailu_mvn Linux - Software 1 04-18-2006 07:31 PM
perl modules problems CPAN tardigrade Linux - Software 6 09-02-2004 12:29 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

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