cpan won't configure correctly on centos6, can't connect to internet

Posted by dan on Server Fault See other posts from Server Fault or by dan
Published on 2012-09-19T19:55:54Z Indexed on 2012/09/20 3:39 UTC
Read the original article Hit count: 2297

Filed under:
|
|

I have Centos 6 setup and have installed perl-CPAN. When I run cpan it takes me through the setup and ends by telling me it can't connect to the internet and to enter a mirror. I enter a mirror, but it still can't install the package. What am I doing wrong?

If you're accessing the net via proxies, you can specify them in the
CPAN configuration or via environment variables. The variable in
the $CPAN::Config takes precedence.

 <ftp_proxy>
Your ftp_proxy? [] 

 <http_proxy>
Your http_proxy? [] 

 <no_proxy>
Your no_proxy? [] 

CPAN needs access to at least one CPAN mirror.

As you did not allow me to connect to the internet you need to supply
a valid CPAN URL now.

Please enter the URL of your CPAN mirror  
CPAN needs access to at least one CPAN mirror.

As you did not allow me to connect to the internet you need to supply
a valid CPAN URL now.

Please enter the URL of your CPAN mirror    mirror.cc.columbia.edu::cpan
Configuration does not allow connecting to the internet.
Current set of CPAN URLs:
  mirror.cc.columbia.edu::cpan
Enter another URL or RETURN to quit: [] 
New urllist
  mirror.cc.columbia.edu::cpan

Please remember to call 'o conf commit' to make the config permanent!


cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.

cpan[1]> install File::Stat
CPAN: Storable loaded ok (v2.20)
  LWP not available
Warning: no success downloading '/root/.cpan/sources/authors/01mailrc.txt.gz.tmp918'.     Giving up on it. at /usr/share/perl5/CPAN/Index.pm line 225
^CCaught SIGINT, trying to continue
Warning: Cannot install File::Stat, don't know what it is.
Try the command

    i /File::Stat/

to find objects with matching identifiers.

cpan[2]> 

© Server Fault or respective owner

Related posts about perl

Related posts about centos6