Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hello,

When trying to install a module that has any dependencies my installation fails to reach out to cpan to download them. This has always worked for me in the past but just recently i have been unable to load any modules that need to reach out to cpan. I have disabled our proxy and made sure that the path it is reaching out to does exist and is reachable by manual means however the issue still persists, See below. DwimPerlversion 0.07

--> Working on P:\PADRE\PerlScripts\Dancer-Plugin-Auth-Extensible-0.30.tar.gz Fetching file://P:/PADRE/PerlScripts/Dancer-Plugin-Auth-Extensible-0.30.tar.gz ... OK Configuring Dancer-Plugin-Auth-Extensible-0.30 ... OK

==> Found dependencies: Mock::Quick --> Working on Mock::Quick Fetching http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Mock-Quick-1.111.tar.gz ... FAIL

! Download http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Mock-Quick-1.111.tar.gz failed. Retrying ...

! Download http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Mock-Quick-1.111.tar.gz failed. Retrying ...

! Download http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Mock-Quick-1.111.tar.gz failed. Retrying ...

! Failed to download http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Mock-Quick-1.111.tar.gz

! Failed to fetch distribution Mock-Quick-1.111

! Bailing out the installation for Dancer-Plugin-Auth-Extensible-0.30. Retry with --prompt or --force.

  • Comment on Failed to fetch distribution Bailing out the installation

Replies are listed 'Best First'.
Re: Failed to fetch distribution Bailing out the installation
by Corion (Patriarch) on Aug 23, 2018 at 14:12 UTC

    If all else fails, you can always go to Mock::Quick and download the tarball yourself. This works for me, so most likely the problem is with the CPAN mirror you are accessing or your network connection to that CPAN mirror.

    Manually installing a downloaded tarball can be done through either:

    cpanm /path/to/Mock-Quick-1.111.tar.gz

    or for cpan:

    tar xzvf Mock-Quick-1.111.tar.gz cd Mock-Quick-1.111 perl Makefile.PL gmake test gmake install