CPAN installation Error Invalid host name on line 1 at *firsttime.pm Line 1857.

Source: Internet
Author: User

Tinker with Cpan today. Error during installation:

[Email protected]:~# cpan Install DBI

CPAN.PM requires configuration, but the most of it can is done automatically.
If you answer ' no ' below, you'll enter an interactive dialog for each
Configuration option instead.

Would you like to configure as much as possible automatically? [Yes]

Would you like me to automatically choose some CPAN mirror
Sites for? (This means connecting to the Internet) [Yes]
Invalid host name on line 1 at/usr/share/perl/5.18/cpan/firsttime.pm line 1857.

Analyze the reason, see 1857 is looking for mirrors, but because before the network error load mirrors list is empty, and mirrors list takes priority to use the cache;

Workaround, manually select a mirrors, or wait for the mirrors list to be loaded and then perform an installation, such as:

CPAN installation Error Invalid host name on line 1 at *firsttime.pm Line 1857.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.