Skip Menu |

This queue is for tickets about the Text-Similarity CPAN distribution.

Report information
The Basics
Id: 43758
Status: resolved
Priority: 0/
Queue: Text-Similarity

People
Owner: Nobody in particular
Requestors: james.mahon.3 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: installation error
Date: Sun, 01 Mar 2009 19:06:18 -0600
To: bug-Text-Similarity [...] rt.cpan.org
From: "James F. Mahon III" <james.mahon.3 [...] gmail.com>
Hello, I attempted to install Text::Similarity-0.07, but "nmake install" returned an error that I don't know how to address. I've pasted the error below. I'm attempting this installation with Perl v5.8.8 built for MSWin32-x86-multi-thread. Here are my locally applied patched attained by running perl -V. Locally applied patches: ActivePerl Build 822 [280952] Iin_load_module moved for compatibility with build 806 PerlEx support in CGI::Carp Less verbose ExtUtils::Install and Pod::Find Patch for CAN-2005-0448 from Debian with modifications Rearrange @INC so that 'site' is searched before 'perl' Partly reverted 24733 to preserve binary compatibility MAINT31223 plus additional changes 31490 Problem bootstraping Win32CORE 31324 Fix DynaLoader::dl_findfile() to locate .so files again 31214 Win32::GetLastError fails when first called 31211 Restore Windows NT support 31188 Problem killing a pseudo-forked child on Win32 29732 ANSIfy the PATH environment variable on Windows 27527,29868 win32_async_check() can loop indefinitely 26970 Make Passive mode the default for Net::FTP 26379 Fix alarm() for Windows 2003 24699 ICMP_UNREACHABLE handling in Net::Ping Can you offer any advice? Best, James Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. P:\LWP\Text-Similarity-0.07>perl makefile.pl Checking if your kit is complete... Looks good Writing Makefile for Text::Similarity P:\LWP\Text-Similarity-0.07>nmake Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. cp lib/Text/Similarity.pm blib\lib\Text\Similarity.pm cp lib/Text/OverlapFinder.pm blib\lib\Text\OverlapFinder.pm cp lib/Text/Similarity/Overlaps.pm blib\lib\Text\Similarity\Overlaps.pm C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/text_similarity.pl bl ib\script\text_similarity.pl pl2bat.bat blib\script\text_similarity.pl P:\LWP\Text-Similarity-0.07>nmake test Microsoft (R) Program Maintenance Utility Version 1.50 Copyright (c) Microsoft Corp 1988-94. All rights reserved. C:\Perl\bin\perl.exe -MExtUtils::Command -e cp bin/text_similarity.pl bl ib\script\text_similarity.pl pl2bat.bat blib\script\text_similarity.pl C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, 'bl ib\lib', 'blib\arch')" t/*.t t/getsimilaritystrings......ok t/no-normalize..............ok t/normalize.................ok t/overlaps..................ok t/text_similarity...........ok t/text_similarity_string....ok 5/8 # Failed test 'order doesn't affect score' # at t/text_similarity_string.t line 69. t/text_similarity_string....NOK 8/8# got: '0' # expected: '1' # Looks like you failed 1 test of 8. t/text_similarity_string....dubious Test returned status 1 (wstat 256, 0x100) DIED. FAILED test 8 Failed 1/8 tests, 87.50% okay Failed Test Stat Wstat Total Fail List of Failed ------------------------------------------------------------------------------- t/text_similarity_string.t 1 256 8 1 8 Failed 1/6 test scripts. 1/130 subtests failed. Files=6, Tests=130, 6 wallclock secs ( 0.00 cusr + 0.00 csys = 0.00 CPU) Failed 1/6 test programs. 1/130 subtests failed. NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' Stop. -- James Mahon Research Professional Becker Center, Chicago Booth, University of Chicago Tel: 773.834.7369 Fax: 773.834.3040 Email: jmahon@chicagogsb.edu
CC: james.mahon.3 [...] gmail.com, text-similarity-users [...] lists.sourceforge.net
Subject: Re: [rt.cpan.org #43758] installation error
Date: Sun, 8 Mar 2009 23:07:19 -0500
To: bug-Text-Similarity [...] rt.cpan.org
From: Ted Pedersen <duluthted [...] gmail.com>
Thanks for reporting this James...this error seems to only occur with this particular version of Windows... http://www.cpantesters.org/show/Text-Similarity.html#0.07 As a result, I'm inclined to say this looks more like a problem with that version of Windows than it does Text-Similarity. The specific error that you are seeing is for one test case that checks to make sure that the order of the words in a string doesn't affect the score... the big cat the cat big Should get the same similarity score... Here is the specific test that is failing... ## this test case was causing trouble for Windows - changed in 0.07 ##$output = `$^X $inc $text_similarity_pl --type Text::Similarity::Overlaps --string 'sir winston churchill' 'winston churchill SIR!!!' `; $output = `$^X $inc $text_similarity_pl --type Text::Similarity::Overlaps --string 'sir winston churchill' 'winston churchill sir' `; chomp $output; is ($output, 1, "order doesn't affect score"); In fact the punctuation in the commented version seemed to cause problems earlier with Windows, not sure what's happening here.... While this might be somewhat risky, you may simply want to force the install and/or comment out this test case to get things installed ok... I wish I could shed more light on this - I normally don't use Windows so I'm not in a really good position to test things out, etc. so any observations you might have would be greatly appreciated. Thanks! Ted On Sun, Mar 1, 2009 at 8:06 PM, James F. Mahon III via RT <bug-Text-Similarity@rt.cpan.org> wrote: Show quoted text
> Sun Mar 01 20:06:48 2009: Request 43758 was acted upon. > Transaction: Ticket created by james.mahon.3@gmail.com >       Queue: Text-Similarity >     Subject: installation error >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: james.mahon.3@gmail.com >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=43758 > > > > Hello, > > I attempted to install Text::Similarity-0.07, but "nmake install" > returned an error that I don't know how to address. I've pasted the > error below. I'm attempting this installation with Perl v5.8.8 built for > MSWin32-x86-multi-thread. Here are my locally applied patched attained > by running perl -V. > >  Locally applied patches: >        ActivePerl Build 822 [280952] >        Iin_load_module moved for compatibility with build 806 >        PerlEx support in CGI::Carp >        Less verbose ExtUtils::Install and Pod::Find >        Patch for CAN-2005-0448 from Debian with modifications >        Rearrange @INC so that 'site' is searched before 'perl' >        Partly reverted 24733 to preserve binary compatibility >        MAINT31223 plus additional changes >        31490 Problem bootstraping Win32CORE >        31324 Fix DynaLoader::dl_findfile() to locate .so files again >        31214 Win32::GetLastError fails when first called >        31211 Restore Windows NT support >        31188 Problem killing a pseudo-forked child on Win32 >        29732 ANSIfy the PATH environment variable on Windows >        27527,29868 win32_async_check() can loop indefinitely >        26970 Make Passive mode the default for Net::FTP >        26379 Fix alarm() for Windows 2003 >        24699 ICMP_UNREACHABLE handling in Net::Ping > > Can you offer any advice? > > Best, > > James > > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > > P:\LWP\Text-Similarity-0.07>perl makefile.pl > Checking if your kit is complete... > Looks good > Writing Makefile for Text::Similarity > > P:\LWP\Text-Similarity-0.07>nmake > > Microsoft (R) Program Maintenance Utility   Version 1.50 > Copyright (c) Microsoft Corp 1988-94. All rights reserved. > > cp lib/Text/Similarity.pm blib\lib\Text\Similarity.pm > cp lib/Text/OverlapFinder.pm blib\lib\Text\OverlapFinder.pm > cp lib/Text/Similarity/Overlaps.pm blib\lib\Text\Similarity\Overlaps.pm >        C:\Perl\bin\perl.exe -MExtUtils::Command -e cp > bin/text_similarity.pl bl > ib\script\text_similarity.pl >        pl2bat.bat blib\script\text_similarity.pl > > P:\LWP\Text-Similarity-0.07>nmake test > > Microsoft (R) Program Maintenance Utility   Version 1.50 > Copyright (c) Microsoft Corp 1988-94. All rights reserved. > >        C:\Perl\bin\perl.exe -MExtUtils::Command -e cp > bin/text_similarity.pl bl > ib\script\text_similarity.pl >        pl2bat.bat blib\script\text_similarity.pl >        C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(0, 'bl > ib\lib', 'blib\arch')" t/*.t > t/getsimilaritystrings......ok > t/no-normalize..............ok > t/normalize.................ok > t/overlaps..................ok > t/text_similarity...........ok > t/text_similarity_string....ok 5/8 > #   Failed test 'order doesn't affect score' > #   at t/text_similarity_string.t line 69. > t/text_similarity_string....NOK 8/8#          got: '0' > #     expected: '1' > # Looks like you failed 1 test of 8. > t/text_similarity_string....dubious >        Test returned status 1 (wstat 256, 0x100) > DIED. FAILED test 8 >        Failed 1/8 tests, 87.50% okay > Failed Test                Stat Wstat Total Fail  List of Failed > ------------------------------------------------------------------------------- > t/text_similarity_string.t    1   256     8    1  8 > Failed 1/6 test scripts. 1/130 subtests failed. > Files=6, Tests=130,  6 wallclock secs ( 0.00 cusr +  0.00 csys =  0.00 CPU) > Failed 1/6 test programs. 1/130 subtests failed. > NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0x1' > Stop. > > -- > James Mahon > Research Professional > Becker Center, Chicago Booth, University of Chicago > Tel: 773.834.7369 > Fax: 773.834.3040 > Email: jmahon@chicagogsb.edu > > >
-- Ted Pedersen http://www.d.umn.edu/~tpederse
Windows sort issue.