Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

cpan client misbehaviour on OpenSuse 12.3

by ted.byers (Scribe)
on Dec 16, 2013 at 15:04 UTC ( #1067342=perlquestion: print w/ replies, xml ) Need Help??
ted.byers has asked for the wisdom of the Perl Monks concerning the following question:

Here is the output I routinely see, whenever I try to use cpan:

--2013-12-16 09:49:56-- (try:17) http://metatraderprogramming.com/cp +an/modules/02packages.details.txt.gz Connecting to metatraderprogramming.com (metatraderprogramming.com)|64 +.237.37.14|:80... failed: Connection timed out. Retrying.

I often see this dozens of times, and then, when it finally ends, the download of an index or package gets interrupted, and the process starts all over, with dozens of retries to connect to metatraderprogramming.com

Why does it do that, and what can I do to have it try any other site?

A key piece of information that is relevant here is that my connection to the internet is fine. I can, for example, open Firefox and connect to any site of interest to me.

When I first ran cpan, I accepted the option it provides that lets it pick suitable defaults. Was that a mistake? If so, is there a web resource that provides guidance on what options to select when manually selecting the configuration options cpan requires?

Installing the packages I require on this machine will be extremely painful until I get this addressed.

Thanks

Ted

Comment on cpan client misbehaviour on OpenSuse 12.3
Download Code
Re: cpan client misbehaviour on OpenSuse 12.3
by marto (Bishop) on Dec 16, 2013 at 15:17 UTC

    Select a mirror. Remove the existing entry:

    cpan> o conf urllist shift

    Add the mirror you chose from the list:

    cpan> o conf urllist push http://mirror.ox.ac.uk/sites/www.cpan.org/

    Save changes to cpan config:

    cpan> o conf commit

    To reinitialise the entire config:

    cpan> o conf init

    See also cpan documentation.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1067342]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2014-12-28 22:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (183 votes), past polls