Perl-Toolchain-Gang / Module-Metadata

Gather package and POD information from perl module files
http://metacpan.org/release/Module-Metadata/
Other
8 stars 16 forks source link

cpanm failed to install Module::Metadata #8

Closed jkeenan closed 10 years ago

jkeenan commented 10 years ago

Attempting to install Module::Metadata on Ubuntu 13.10, Perl 5.18.2 installed via perlbrew, I got these results:

$ cpanm Module::Metadata
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000022.tar.gz ... OK
! Failed to unpack Module-Metadata-1.000022.tar.gz: no directory
! Failed to fetch distribution Module-Metadata-1.000022
$ cpanm Module-Metadata
! Finding Module-Metadata on cpanmetadb failed.
! Finding Module-Metadata () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Module-Metadata

I was able to successfully use 'wget' to download the tarball from the www.cpan.org site above. So I have what I need for investigating https://rt.perl.org/Ticket/Display.html?id=115370. But since I want to consistently use 'cpanm' on this particular machine, I'm holding off on installing/using Module-Metadata.

Thank you very much. Jim Keenan

karenetheridge commented 10 years ago

On Sun, May 18, 2014 at 05:07:42AM -0700, James E Keenan wrote:

Attempting to install Module::Metadata on Ubuntu 13.10, Perl 5.18.2 installed via perlbrew, I got these results: I was able to successfully use 'wget' to download the tarball from the www.cpan.org site above. So I have what I need for investigating https://rt.perl.org/Ticket/Display.html?id=115370. But since I want to consistently use 'cpanm' on this particular machine, I'm holding off on installing/using Module-Metadata.

There were other reports of problems with cpanm on #toolchain last night. I expect some mirrors were temporarily down.

jkeenan commented 10 years ago

Per suggestion from haarg on #toolchain:

$ cpanm -v Module::Metadata
cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux
Work directory is /home/jkeenan/.cpanm/work/1400428359.12924
You have make /usr/bin/make
You have LWP 6.05
You have ./tar: 
You have /usr/bin/unzip
Searching Module::Metadata on cpanmetadb ...
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000022.tar.gz ... OK
Unpacking Module-Metadata-1.000022.tar.gz
! Failed to unpack Module-Metadata-1.000022.tar.gz: no directory
! Failed to fetch distribution Module-Metadata-1.000022
jkeenan commented 10 years ago

haarg++ noted on #toolchain that I had a directory named "tar" in the directory from which I invoked cpanm Module::Metadata. Indeed, I did. When I renamed that directory to "tarballs" -- its real content -- and then re-ran the command, I succeeded:

$ cpanm -v Module::Metadata
cpanm (App::cpanminus) 1.7001 on perl 5.018002 built for x86_64-linux
Work directory is /home/jkeenan/.cpanm/work/1400428648.12954
You have make /usr/bin/make
You have LWP 6.05
You have /bin/tar: tar (GNU tar) 1.26
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Module::Metadata on cpanmetadb ...
--> Working on Module::Metadata
Fetching http://www.cpan.org/authors/id/E/ET/ETHER/Module-Metadata-1.000022.tar.gz ... OK
Unpacking Module-Metadata-1.000022.tar.gz
Module-Metadata-1.000022/
Module-Metadata-1.000022/Changes
Module-Metadata-1.000022/lib/
Module-Metadata-1.000022/maint/
Module-Metadata-1.000022/Makefile.PL
Module-Metadata-1.000022/MANIFEST
Module-Metadata-1.000022/META.json
Module-Metadata-1.000022/META.yml
Module-Metadata-1.000022/README
Module-Metadata-1.000022/t/
Module-Metadata-1.000022/xt/
Module-Metadata-1.000022/xt/pod.t
Module-Metadata-1.000022/t/contains_pod.t
Module-Metadata-1.000022/t/encoding.t
Module-Metadata-1.000022/t/endpod.t
Module-Metadata-1.000022/t/lib/
Module-Metadata-1.000022/t/metadata.t
Module-Metadata-1.000022/t/taint.t
Module-Metadata-1.000022/t/version.t
Module-Metadata-1.000022/t/lib/0_1/
Module-Metadata-1.000022/t/lib/0_2/
Module-Metadata-1.000022/t/lib/BOMTest/
Module-Metadata-1.000022/t/lib/ENDPOD.pm
Module-Metadata-1.000022/t/lib/BOMTest/UTF16BE.pm
Module-Metadata-1.000022/t/lib/BOMTest/UTF16LE.pm
Module-Metadata-1.000022/t/lib/BOMTest/UTF8.pm
Module-Metadata-1.000022/t/lib/0_2/Foo.pm
Module-Metadata-1.000022/t/lib/0_1/Foo.pm
Module-Metadata-1.000022/maint/bump-version
Module-Metadata-1.000022/maint/Makefile.include
Module-Metadata-1.000022/maint/Makefile.PL.include
Module-Metadata-1.000022/lib/Module/
Module-Metadata-1.000022/lib/Module/Metadata.pm
Entering Module-Metadata-1.000022
Checking configure dependencies from META.json
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.92)
Running Makefile.PL
Configuring Module-Metadata-1.000022 ... Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Module::Metadata
Writing MYMETA.yml and MYMETA.json
OK
Checking dependencies from MYMETA.json ...
Checking if you have warnings 0 ... Yes (1.18)
Checking if you have IO::File 0 ... Yes (1.16)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.92)
Checking if you have File::Temp 0 ... Yes (0.23)
Checking if you have File::Path 0 ... Yes (2.09)
Checking if you have Carp 0 ... Yes (1.29)
Checking if you have Cwd 0 ... Yes (3.40)
Checking if you have version 0.87 ... Yes (0.9902)
Checking if you have File::Find 0 ... Yes (1.23)
Checking if you have Test::More 0.82 ... Yes (0.98)
Checking if you have vars 0 ... Yes (1.03)
Checking if you have strict 0 ... Yes (1.07)
Checking if you have File::Spec 0 ... Yes (3.40)
Checking if you have File::Basename 0 ... Yes (2.84)
Checking if you have Data::Dumper 0 ... Yes (2.145)
Building and testing Module-Metadata-1.000022 ... cp lib/Module/Metadata.pm blib/lib/Module/Metadata.pm
Manifying blib/man3/Module::Metadata.3
PERL_DL_NONLAZY=1 /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/bin/perl "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/contains_pod.t .. ok   
t/encoding.t ...... ok     
t/endpod.t ........ ok   
t/metadata.t ...... # using temp dir /tmp/MMD-Ea2fXcqC
t/metadata.t ...... 1/204 # removing temp dir /tmp/MMD-Ea2fXcqC
t/metadata.t ...... ok       
t/taint.t ......... ok   
t/version.t ....... ok   
All tests successful.
Files=6, Tests=227,  0 wallclock secs ( 0.05 usr  0.01 sys +  0.21 cusr  0.04 csys =  0.31 CPU)
Result: PASS
Installing /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/Module/Metadata.pm
Installing /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/man/man3/Module::Metadata.3
Appending installation info to /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/5.18.2/x86_64-linux/perllocal.pod
OK
Successfully installed Module-Metadata-1.000022 (upgraded from 1.000011)
Installing /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/.meta/Module-Metadata-1.000022/install.json
Installing /home/jkeenan/perl5/perlbrew/perls/perl-5.18.2/lib/site_perl/5.18.2/x86_64-linux/.meta/Module-Metadata-1.000022/MYMETA.json
1 distribution installed

Perhaps that means that cpanm's search for something called "tar" needs to be refined.

Thank you very much. Jim Keenan

KES777 commented 6 years ago
cpanm Carton
cpanm (App::cpanminus) 1.7044 on perl 5.024001 built for x86_64-linux
Work directory is /home/shurk/.cpanm/work/1532800028.22401
You have make /usr/bin/make
You have /usr/bin/wget
You have /bin/tar: tar (GNU tar) 1.28
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
You have /usr/bin/unzip
Searching Сarton () on cpanmetadb ...
--2018-07-28 20:47:08--  http://cpanmetadb.plackperl.org/v1.0/package/%D0%A1arton
Resolving cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)... 151.101.14.217
Connecting to cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)|151.101.14.217|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-07-28 20:47:09 ERROR 404: Not Found.

--2018-07-28 20:47:09--  http://cpanmetadb.plackperl.org/v1.0/package/%D0%A1arton
Reusing existing connection to cpanmetadb.plackperl.org:80.
HTTP request sent, awaiting response... 404 Not Found
2018-07-28 20:47:09 ERROR 404: Not Found.

! Finding Сarton on cpanmetadb failed.
--2018-07-28 20:47:09--  http://fastapi.metacpan.org/v1/download_url/%D0%A1arton
Resolving fastapi.metacpan.org (fastapi.metacpan.org)... 151.101.14.217, 2a04:4e42:3::729
Connecting to fastapi.metacpan.org (fastapi.metacpan.org)|151.101.14.217|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2018-07-28 20:47:09 ERROR 404: Not Found.

--2018-07-28 20:47:09--  http://fastapi.metacpan.org/v1/download_url/%D0%A1arton
Reusing existing connection to fastapi.metacpan.org:80.
HTTP request sent, awaiting response... 404 Not Found
2018-07-28 20:47:09 ERROR 404: Not Found.

! Could not find a release matching Сarton on MetaCPAN.
Searching Сarton on mirror http://www.cpan.org ...
Downloading index file http://www.cpan.org/modules/02packages.details.txt.gz ...
--2018-07-28 20:47:09--  http://www.cpan.org/modules/02packages.details.txt.gz
Resolving www.cpan.org (www.cpan.org)... 151.101.14.49, 2a04:4e42:3::561
Connecting to www.cpan.org (www.cpan.org)|151.101.14.49|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2110396 (2,0M) [application/x-gzip]
Saving to: ‘/home/shurk/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz’

/home/shurk/.cpanm/sources/http%www 100%[===================================================================>]   2,01M  4,38MB/s    in 0,5s    

2018-07-28 20:47:10 (4,38 MB/s) - ‘/home/shurk/.cpanm/sources/http%www.cpan.org/02packages.details.txt.gz’ saved [2110396/2110396]

! Finding Сarton () on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Сarton

On this host other modules are installed OK. On different host cpanm Carton works fine.

How this can be fixed?

UPD

sudo rm -r /home/shurk/.cpanm

fixes that

karenetheridge commented 6 years ago

You're not providing the right module name. Instead, you're asking for something that looks nearly the same, but doesn't exist:

Searching Сarton () on cpanmetadb ... --2018-07-28 20:47:08-- http://cpanmetadb.plackperl.org/v1.0/package/%D0%A1arton

It seems that somehow the 'C' character (LATIN CAPITAL LETTER C, U+0043) was replaced with 'С' (CYRILLIC CAPITAL LETTER ES, U+0421).