Subject: | http fetch bugs in cpanm |
Date: | Mon, 6 Oct 2014 14:38:29 +0300 |
To: | bug-Perl-Dist-Strawberry [...] rt.cpan.org |
From: | Ev Sarmas <esarmas [...] gmail.com> |
Hello,
I want to learn perl and downloaded and use Strawberry Per (5.20) on 32 bit
Windows. It works fine but when I wanted to install Padre I used the
'cpanm' tool which is my source of complaints.
1. cpanm cannot get a http url for a distribution on first try immediately
and usually on all 3 tries so I have to run a cpanm command many times in
sequence for it to get the distribution and try to install it (often 10
times !!!)
certainly something is wrong, Chrome gets it immediately on first try
this happened with
cpanm Padre
cpanm Alien::wxWidgets
cpanm Wx
2. even when cpanm finally gets the distribution it cannot install it
because it often needs to get some other source and fetches further http
data which not all result in 200 HTTP code but many times in 301 HTTP code
(MOVED) that cpanm handles as error
clearly cpanm should handle 301 and finish the installation
I paste below the log for cpanm Alien:wxWidgets
cpanm (App::cpanminus) 1.7009 on perl 5.020001 built for
MSWin32-x86-multi-thread-64int
Work directory is C:\DOCUME~1\eis/.cpanm/work/1412516982.2084
You have make C:\Strawberry\c\bin\dmake.exe
You have LWP 6.08
Falling back to Archive::Tar 2.02
Searching Alien::wxWidgets on cpanmetadb ...
-> FAIL Finding Alien::wxWidgets on cpanmetadb failed.
Searching Alien::wxWidgets () on metacpan ...
--> Working on Alien::wxWidgets
Fetching
http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-0.65.tar.gz
-> OK
Unpacking Alien-wxWidgets-0.65.tar.gz
Entering Alien-wxWidgets-0.65
Checking configure dependencies from META.json
Checking if you have Module::Build 0.28 ... Yes (0.4210)
Configuring Alien-wxWidgets-0.65
Running Build.PL
Possible precedence issue with control flow operator at
lib/Alien/wxWidgets/Utility.pm line 77.
Created MYMETA.yml and MYMETA.json
Creating new 'Build' script for 'Alien-wxWidgets' version '0.65'
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have Module::Pluggable 2.6 ... Yes (5.1)
Checking if you have Module::Build 0.28 ... Yes (0.4210)
Checking if you have File::Spec 1.50 ... Yes (3.48)
Checking if you have ExtUtils::CBuilder 0.24 ... Yes (0.280219)
Building and testing Alien-wxWidgets-0.65
Possible precedence issue with control flow operator at
lib/Alien/wxWidgets/Utility.pm line 77.
Fetch failed! HTTP response: 500 Internal Server Error [500 Can't connect
to prdownloads.sourceforge.net:80 <http://prdownloads.sourceforge.net/>] at
inc/My/Build/Base.pm line 305.
Fetch failed! HTTP response: 599 [Internal Exception] at
inc/My/Build/Base.pm line 305.
Got a '301' from 'prdownloads.sourceforge.net' expected '200' at
inc/My/Build/Base.pm line 305.
Unable to fetch archive at inc/My/Build/Base.pm line 307.
Building Alien-wxWidgets
Fetching wxWidgets...
fetching from:
http://prdownloads.sourceforge.net/wxwindows/wxWidgets-3.0.0.tar.bz2
-> FAIL Installing Alien::wxWidgets failed. See
C:\DOCUME~1\eis\.cpanm\work\1412516982.2084\build.log for details. Retry
with --force to force install it.
Please what can I do ??
I must say the impression one gets is not very favorable for Perl (sorry...)
cpanm is not just a tool that may go wrong, it's the main install/upgrade
tool for perl packages as I understand and it should work ok
Best regards,
E.Sarmas