camscape - for excellent IT solutions itkb.ro - IT knowledge base

linux :: perl cpan cant connect to

Cristian
Cristian M.
TitlePerl CPAN cant connect to
TagsCPAN,connection failed
Desc.Perl CPAN not working mirrors
CodeKBLN0037 v1.0
Date14 iulie 2018

Sometimes CPAN cannot download modules and seems that its mirrors are not working. If you see something like

 

Connecting to soft-download.org (somesitename)|someip|:80... failed: Connection timed out.
Retrying

 

Then you have to change the mirrors:

 

perl -MCPAN -e shell

o conf urllist
o conf urllist ftp://cpan.mirror.iphh.net/pub/CPAN/ http://mirror.netcologne.de/cpan/ http://www.planet-elektronik.de/CPAN/
o conf commit

 

The full list of working mirrors can be read here: http://www.cpan.org/SITES.html