Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Text::Summarizer fails on Windows 10

by Anonymous Monk
on Jan 16, 2021 at 18:21 UTC ( #11127007=perlquestion: print w/replies, xml ) Need Help??

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

Hello

I am trying to install on Windows 10, Strawberryperl v5.28.1, the module Text::Summarizer. I get the following - for my knowledge - strange error. Do you know what can I do to solve this issue?

cpanm Text::Summarizer --> Working on Text::Summarizer Fetching http://www.cpan.org/authors/id/F/FA/FAELIN/Text-Summarizer-2. +01.tar.gz ... OK Could not create directory 'C:\Users\TE\.cpanm\work\1610820965.16324\T +ext-Summarizer-2.01\Corpus\written\newspaper:newswire' for 'Text-Summ +arizer-2.01/Corpus/written/newspaper:newswire': mkdir C:\Users\TE\.cp +anm\work\1610820965.16324\Text-Summarizer-2.01\Corpus\written\newspap +er:.: Invalid argument; Die Syntax f│r den Dateinamen, Verzeichnisnam +en oder die Datentr§gerbezeichnung ist falsch at C:/Strawberry/perl/l +ib/Archive/Tar.pm line 819. at C:\Strawberry\perl\bin\cpanm.bat line 132. Could not extract 'Text-Summarizer-2.01/Corpus/written/newspaper:newsw +ire' at C:\Strawberry\perl\bin\cpanm.bat line 132. ==> Found dependencies: Module::Build Found Module::Build 0.4231 which doesn't satisfy 2.01. ! Installing the dependencies failed: Installed version (0.4224) of Mo +dule::Build is not in range '2.01' ! Bailing out the installation for Text-Summarizer-2.01.

Replies are listed 'Best First'.
Re: Text::Summarizer fails on Windows 10 (updated)
by haukex (Bishop) on Jan 16, 2021 at 18:40 UTC

    There seem to be some errors in the distribution, for example Build.PL contains configure_requires => { 'Module::Build' => 2.01 }, which is incorrect and the source of the second error, and the archive contains some filenames that are invalid on Windows; that's the source of the first error. Though I haven't tested this, you could attempt a manual install, by downloading the distribtion from Text::Summarizer, using an unpacking tool of your choice and skipping or renaming the offending files in the "Corpus" folder, and then using the manual "perl Makefile.PL; make; make test; make install" procedure.

    Update: Tested on Strawberry Perl 5.32. Unpacked the module's .tar.gz with 7-Zip, ran cpanm Algorithm::CurveFit Lingua::Stem List::AllUtils Moo Types::Standard Text::Markup, perl Makefile.PL, gmake, gmake test (didn't work), and gmake install, and at least the module appears to have been installed ok. Whether the module is working correctly is something you'll have to test yourself...

Re: Text::Summarizer fails on Windows 10
by perl-diddler (Chaplain) on Jan 17, 2021 at 04:23 UTC
    It seems to be stopping in mkdir with last item being 'newspaper:newswire'. The colon can't be used on Native Windows.
    You might be able to get it to work on Cygwin's perl, as it handles / allows colons in file names.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://11127007]
Front-paged by Arunbear
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2021-03-03 06:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My favorite kind of desktop background is:











    Results (75 votes). Check out past polls.

    Notices?