http://www.perlmonks.org?node_id=998505

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

Tom's Unicode::Tussle cannot be installed on Windows using PPM. (See http://code.activestate.com/ppm/Unicode-Tussle/.) According to the documentation, it's just a collection of useful Perl scripts. Any tips on how to install it manually? Thanks!

Jim

  • Comment on Installing Unicode::Tussle On Microsoft Windows With ActiveState ActivePerl

Replies are listed 'Best First'.
Re: Installing Unicode::Tussle On Microsoft Windows With ActiveState ActivePerl
by VinsWorldcom (Prior) on Oct 11, 2012 at 19:46 UTC

    How about just downloading from CPAN and doing the magic incantation:

    perl Makefile.PL ([dn]?)make ([dn]?)make test ([dn]?)make install

    You could also use the CPAN client from the command line:

    cpan Unicode::Tussle

      Thanks for the suggestion.

      It seems this package simply is not designed for Windows. (Not surprising given Tom's utter disdain for Windows.) I finally used…

      cpan -f -i Unicode::Tussle
      

      …and it installed. Whether or not the utilities will work remains to be seen. At least five dependencies wouldn't install successfully no matter what I tried (which wasn't much, frankly).

      The perldoc pages are unusable on Windows because they're UTF-8, which Windows doesn't support. (Code page 65001 doesn't work.)

        The problems seem to be more crap packages -- missing files:

        C:\perl64\packages\Lingua-ZH-Romanize-Pinyin-0.23>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. C:\perl64\bin\perl.exe -Ilib -MLingua::ZH::Romanize::DictZH -e + 'Lingua::ZH::Romanize::DictZH::Cantonese->update();' C:\perl64\bin\perl.exe -Ilib -MLingua::ZH::Romanize::DictZH -e + 'Lingua::ZH::Romanize::DictZH::Pinyin->update();' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! ERROR: Cannot copy 'lib/Lingua/ZH/Romanize/Cantonese.store' to 'blib/l +ib/Lingua/ZH/Romanize/Cantonese.store': No such file or directory !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! at -e line 1 Checking if your kit is complete... Looks good Writing Makefile for Unicode::Unihan C:\perl64\packages\Unicode-Unihan-0.04>nmake Microsoft (R) Program Maintenance Utility Version 9.00.21022.08 Copyright (C) Microsoft Corporation. All rights reserved. NMAKE : fatal error U1073: don't know how to make 'db/AccountingNumeri +c.db' Stop.

        and crap tools:

        C:\perl64\packages\Unicode-Tussle-1.03>build Checking prerequisites... requires: ! Lingua::JA::Romanize::Japanese is not installed ! Lingua::ZH::Romanize::Pinyin is not installed ! Unicode::Unihan is not installed ERRORS/WARNINGS FOUND IN PREREQUISITES. You may wish to install the v +ersions of the modules indicated above before proceeding with this installatio +n Run 'Build installdeps' to install missing prerequisites. Creating new 'MYMETA.yml' with configuration results Creating new 'Build' script for 'Unicode-Tussle' version '1.03' C:\perl64\packages\Unicode-Tussle-1.03>build installdeps Too early to specify a build action 'installdeps'. Do 'Build installd +eps' instead. C:\perl64\packages\Unicode-Tussle-1.03>Build installdeps Too early to specify a build action 'installdeps'. Do 'Build installd +eps' instead.

        Rather than anything specifically windows.

        As for the docs: have you tried browsing the html versions.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.

        RIP Neil Armstrong

Re: Installing Unicode::Tussle On Microsoft Windows With ActiveState ActivePerl
by Anonymous Monk on Oct 12, 2012 at 00:40 UTC
    Don't bother, its not possible, too many unixisms in code and makefile -- didn't you notice its not http://search.cpan.org/~tomc/ who releases this stuff
      …didn't you notice its not http://search.cpan.org/~tomc/ who releases this stuff?

      Yes, naturally. Tom Christiansen wrote the utilities and brian d foy packaged them and uploaded the distribution to CPAN. As you said, there are Windows-thwarting Unixisms in both the code and the distribution. I'm missing your point here.

      One obvious gripe, even after "successfully" installing Unicode::Tussle on Windows using cpan:  built-in paging of the standard output stream, which causes this problem on Windows…

      C:\>unichars List form of pipe open not implemented at C:\Perl\site\bin/unichars li +ne 598. C:\>sed -n 598p C:\Perl\site\bin/unichars open(STDOUT, "|- :utf8", $his_pager, @pager_args); C:\>unichars --nopager 2>NUL | head ---- U+0000 NULL ---- U+0001 START OF HEADING ---- U+0002 START OF TEXT ---- U+0003 END OF TEXT ---- U+0004 END OF TRANSMISSION ---- U+0005 ENQUIRY ---- U+0006 ACKNOWLEDGE ---- U+0007 ALERT ---- U+0008 BACKSPACE ---- U+0009 CHARACTER TABULATION C:\>perl -v | head -8 This is perl 5, version 16, subversion 1 (v5.16.1) built for MSWin32-x +86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2012, Larry Wall Binary build 1601 [296175] provided by ActiveState http://www.ActiveSt +ate.com Built Aug 30 2012 20:08:55 C:\>

        I'm missing your point here.

        Tomc has account yet chose not to release it, so Ovid releases it.

        When bugs reports come (say cpan testers), Ovid ignores them (hey, I just upload it), and Tomc doesn't get them (hey, I didn't upload it), and the unixisms remain.

        When the author doesn't release his own work, when author doesn't at least have have "maintainer" status on cpan, expect the package to not work, well :)