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

In reply to Trouble with MCPAN by mron

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.