I tried to execute this command on a MacBook running osX 14.4.1:
perl -MCPAN -e 'install XML::Parser'
The command fails to load the module, hanging until I kill it. Here's the output:
Reading '/Users/me/.cpan/Metadata'
Database was generated on Wed, 26 Oct 2016 18:53:30 GMT
Reading '/Users/me/.cpan/sources/authors/01mailrc.txt.gz'
......................................................................
+......DONE
Fetching with LWP:
http://mirror.jre655.com/CPAN/modules/02packages.details.txt.gz
LWP failed with code[500] message[Can't connect to mirror.jre655.com:8
+0 (nodename nor servname provided, or not known)]
Trying with
/usr/bin/curl -L -f -s -S --netrc-optional
to get
http://mirror.jre655.com/CPAN/modules/02packages.details.txt.gz
curl: (6) Could not resolve host: mirror.jre655.com
Function system("/usr/bin/curl -L -f -s -S --netrc-optional "http:
+//mirror.jre655.com/CPAN/modules/02packages.details.txt.gz" > "/User
+s/me/.cpan/sources/modules/02packages.details.txt.gz.tmp13888"")
returned status 6 (wstat 1536), left
/Users/me/.cpan/sources/modules/02packages.details.txt.gz.tmp13888 wit
+h size 0
Warning: no success downloading '/Users/me/.cpan/sources/modules/0
+2packages.details.txt.gz.tmp13888'. Giving up on it.
Fetching with LWP:
http://mirrors.sohu.com/CPAN/modules/02packages.details.txt.gz
I'd like to know why it fails and how to fix it. Failing that, I'd like to know another way to load the module,
Thanks