Subject: | zipfile uninstallable using cpanm |
Text-Levenshtein-Damerau-0.04 is not installable with cpanm (see
http://cpanmin.us):
$ cpanm -v Text::Levenshtein::Damerau
You have make /usr/bin/make
You have LWP 6.04
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 Text::Levenshtein::Damerau on cpanmetadb ...
Fetching http://search.cpan.org/CPAN/authors/id/U/UG/UGEXE/Text-
Levenshtein-Damerau-0.04.zip ... OK
Unpacking Text-Levenshtein-Damerau-0.04.zip
Archive: Text-Levenshtein-Damerau-0.04.zip
inflating: Text-Levenshtein-Damerau-0.04/Changes
creating: Text-Levenshtein-Damerau-0.04/lib/
creating: Text-Levenshtein-Damerau-0.04/lib/Text/
creating: Text-Levenshtein-Damerau-0.04/lib/Text/Levenshtein/
inflating: Text-Levenshtein-Damerau-
0.04/lib/Text/Levenshtein/Damerau.pm
inflating: Text-Levenshtein-Damerau-0.04/LICENSE
inflating: Text-Levenshtein-Damerau-0.04/Makefile.PL
extracting: Text-Levenshtein-Damerau-0.04/MANIFEST
inflating: Text-Levenshtein-Damerau-0.04/README
creating: Text-Levenshtein-Damerau-0.04/scripts/
creating: Text-Levenshtein-Damerau-0.04/t/
extracting: Text-Levenshtein-Damerau-0.04/Todo
! Bad archive: [ testing: Text-Levenshtein-Damerau-0.04/Changes OK]
Text-Levenshtein-Damerau-0.04.zip
! Failed to unpack Text-Levenshtein-Damerau-0.04.zip: no directory
! Failed to fetch distribution Text-Levenshtein-Damerau-0.04
This seems to be caused because the zipfile does not contain the folder
"Text-Levenshtein-Damerau-0.04" itself, but cpanm matches the output of
unzip and requires a directory.
Compare the output with what I get when I re-zip your folder:
$ unzip -l meh.zip
Archive: meh.zip
Length Date Time Name
--------- ---------- ----- ----
0 2012-09-16 03:08 Text-Levenshtein-Damerau-0.04/
0 2012-06-20 19:39 Text-Levenshtein-Damerau-0.04/lib/
0 2012-06-20 19:39 Text-Levenshtein-Damerau-0.04/lib/Text/
0 2012-06-20 19:39 Text-Levenshtein-Damerau-
0.04/lib/Text/Levenshtein/
2288 2012-06-20 22:35 Text-Levenshtein-Damerau-
0.04/lib/Text/Levenshtein/Damerau.pm
0 2012-01-02 12:28 Text-Levenshtein-Damerau-0.04/scripts/
103 2012-06-20 15:26 Text-Levenshtein-Damerau-0.04/README
20545 2012-06-20 15:26 Text-Levenshtein-Damerau-0.04/LICENSE
0 2012-06-20 15:29 Text-Levenshtein-Damerau-0.04/t/
80 2012-06-20 15:36 Text-Levenshtein-Damerau-0.04/MANIFEST
356 2012-06-20 15:36 Text-Levenshtein-Damerau-0.04/Makefile.PL
156 2012-06-20 22:34 Text-Levenshtein-Damerau-0.04/Changes
70 2012-06-20 15:26 Text-Levenshtein-Damerau-0.04/Todo
--------- -------
23598 13 files
Could you please upload a new, fixed zipfile? Thanks!