in reply to Re: Colored text output in Windows cmd
in thread Colored text output in Windows cmd

I followed the steps on installing the module (referring to the previous post)

It has been my experience, that whenever perlmonks posters say "I've followed the steps", without showing they've done so (copy/paste of shell session), they missed something simple

If you follow Can't locate loadable object for module you can learn from pervious posters why this error happens (copying .pm files) and why you shoudn't do that

  • Comment on Re^2: Colored text output in Windows cmd

Replies are listed 'Best First'.
Re^3: Colored text output in Windows cmd
by astronogun (Sexton) on May 13, 2012 at 06:23 UTC

    ok here's what I've done so far.... and it's already OK

    I've downloaded the Win32-Console-ANSI-1.04.tar.gz file.. then at the command line I typed this:

    Makefile.pl:

    C:\strawberry\perl\lib\Win32-Console-ANSI-1.04>Makefile.PL Checking if your kit is complete... Looks good Warning: prerequisite Win32::Pipe 0 not found. Writing Makefile for Win32::Console::ANSI Writing MYMETA.yml and MYMETA.json

    dmake:

    C:\strawberry\perl\lib\Win32-Console-ANSI-1.04>dmake cp lib/Win32/Console/ANSI.pm blib\lib\Win32\Console\ANSI.pm C:\strawberry\perl\bin\perl.exe C:\strawberry\perl\lib\ExtUtils\xsubpp + -typemap C:\strawberry\perl\lib\ExtUtils\typemap -typemap typemap ANSI.xs > A +NSI.xsc && C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e mv -- ANSI.xsc + ANSI.c gcc -c -I. -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_ +SCRIPTS -D USE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -fno-str +ict-aliasi ng -mms-bitfields -s -O2 -DVERSION=\"1.04\" -DXS_VERSION=\ +"1.04\" " -IC:\strawberry\perl\lib\CORE" ANSI.c Running Mkbootstrap for Win32::Console::ANSI () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 AN +SI.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::Console::ANSI\", 'DLBASE' => 'ANS +I', 'DL_FU NCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" dlltool --def ANSI.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\Console\ANSI\ANSI.dll -Wl,--base-file -Wl, +dll.base - mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\lib" ANSI.o + C:\stra wberry\perl\lib\CORE\libperl514.a -lmoldname -lkernel32 -luser32 -lgdi +32 -lwinsp ool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luu +id -lws2_3 2 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp dlltool --def ANSI.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32\Console\ANSI\ANSI.dll -mdll -s -L"C:\straw +berry\perl \lib\CORE" -L"C:\strawberry\c\lib" ANSI.o C:\strawberry\perl\lib\COR +E\libperl5 14.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -lad +vapi32 -ls hell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lv +ersion -lo dbc32 -lodbccp32 -lcomctl32 dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 bl +ib\arch\au to\Win32\Console\ANSI\ANSI.dll C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- ANSI.bs b +lib\arch\a uto\Win32\Console\ANSI\ANSI.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 bl +ib\arch\au to\Win32\Console\ANSI\ANSI.bs

    dmake test:

    C:\strawberry\perl\lib\Win32-Console-ANSI-1.04>dmake test C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/00_Pod.t ............. skipped: Test::Pod 1.00 required for testing +POD t/01_PodCoverage.t ..... skipped: Test::Pod::Coverage 1.00 required fo +r testing POD coverage t/02_CursorFunc.t ...... Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/02_CursorFunc.t line 3. BEGIN failed--compilation aborted at t/02_CursorFunc.t line 3. t/02_CursorFunc.t ...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/03_CursorMove.t ...... Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/03_CursorMove.t line 3. BEGIN failed--compilation aborted at t/03_CursorMove.t line 3. t/03_CursorMove.t ...... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/04_DisplayEdition.t .. Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/04_DisplayEdition.t line 3. BEGIN failed--compilation aborted at t/04_DisplayEdition.t line 3. t/04_DisplayEdition.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/05_Colors.t .......... Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/05_Colors.t line 3. BEGIN failed--compilation aborted at t/05_Colors.t line 3. t/05_Colors.t .......... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/06_Func.t ............ Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/06_Func.t line 3. BEGIN failed--compilation aborted at t/06_Func.t line 3. t/06_Func.t ............ Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/07_TortureMeHoney.t .. Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/07_TortureMeHoney.t line 3. BEGIN failed--compilation aborted at t/07_TortureMeHoney.t line 3. t/07_TortureMeHoney.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/08_Compatibility.t ... Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/08_Compatibility.t line 3. BEGIN failed--compilation aborted at t/08_Compatibility.t line 3. t/08_Compatibility.t ... Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/09_Compatibility2.t .. Can't locate Win32/Pipe.pm in @INC (@INC cont +ains: C:\s trawberry\perl\lib\Win32-Console-ANSI-1.04\blib\lib C:\strawberry\perl +\lib\Win32 -Console-ANSI-1.04\blib\arch C:/strawberry/perl/site/lib C:/strawberry +/perl/vend or/lib C:/strawberry/perl/lib .) at t/09_Compatibility2.t line 3. BEGIN failed--compilation aborted at t/09_Compatibility2.t line 3. t/09_Compatibility2.t .. Dubious, test returned 2 (wstat 512, 0x200) No subtests run t/99_Kwalitee.t ........ skipped: Test::Kwalitee not installed; skippi +ng Test Summary Report ------------------- t/02_CursorFunc.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/03_CursorMove.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/04_DisplayEdition.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/05_Colors.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/06_Func.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/07_TortureMeHoney.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/08_Compatibility.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/09_Compatibility2.t (Wstat: 512 Tests: 0 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=11, Tests=0, 1 wallclock secs ( 0.06 usr + 0.08 sys = 0.14 CP +U) Result: FAIL Failed 8/11 test programs. 0/0 subtests failed. dmake: Error code 255, while making 'test_dynamic'

    dmake install:

    C:\strawberry\perl\lib\Win32-Console-ANSI-1.04>dmake install Files found in blib\arch: installing files in blib\lib into architectu +re depende nt library tree Installing C:\strawberry\perl\site\lib\auto\Win32\Console\ANSI\ANSI.bs Installing C:\strawberry\perl\site\lib\auto\Win32\Console\ANSI\ANSI.dl +l Installing C:\strawberry\perl\site\lib\Win32\Console\ANSI.pm Appending installation info to C:\strawberry\perl\lib/perllocal.pod

    To finish I just add Term/ANSI.pm at the C:\strawberry\perl\site\lib (Because it prompt in the cmd that the file can't be located

    note: on the dmake as I've read on other post it is indicated that for 64-bit running Windows (like me Windows 7) is the best one to use...

      Warning: prerequisite Win32::Pipe 0 not found.

      If you first install Win32::Pipe, Win32::Console::ANSI should then pass those tests.

      Cheers,
      Rob