Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Trouble Installing Win32::GuiTest

by Anonymous Monk
on Aug 13, 2012 at 21:31 UTC ( #987215=perlquestion: print w/ replies, xml ) Need Help??
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

I am having trouble installing Win32::GuiTest. It is throwing an error as below.
"dmake.exe: Error code 255, while making 'test_dynamic'"
Please help.

cpan> install Win32::GuiTest Could not read metadata file. Falling back to other methods to determi +ne prerequisites Running install for module 'Win32::GuiTest' Running make for K/KA/KARASIK/Win32-GuiTest-1.60.tar.gz Checksum was ok Win32-GuiTest-1.60/ Win32-GuiTest-1.60/CHANGES Win32-GuiTest-1.60/DibSect.cpp Win32-GuiTest-1.60/dibsect.h Win32-GuiTest-1.60/eg/ Win32-GuiTest-1.60/eg/ask.pl Win32-GuiTest-1.60/eg/calc.pl Win32-GuiTest-1.60/eg/excel.pl Win32-GuiTest-1.60/eg/excel2.pl Win32-GuiTest-1.60/eg/fonts.pl Win32-GuiTest-1.60/eg/iswindowstyle.pl Win32-GuiTest-1.60/eg/keypress.pl Win32-GuiTest-1.60/eg/make_eg.pl Win32-GuiTest-1.60/eg/menuselect.pl Win32-GuiTest-1.60/eg/notepad.pl Win32-GuiTest-1.60/eg/notepad_text.pl Win32-GuiTest-1.60/eg/paint.pl Win32-GuiTest-1.60/eg/paint_abs.pl Win32-GuiTest-1.60/eg/pushbutton.pl Win32-GuiTest-1.60/eg/rawkey.pl Win32-GuiTest-1.60/eg/selecttabitem.pl Win32-GuiTest-1.60/eg/showcpl.pl Win32-GuiTest-1.60/eg/showmouse.pl Win32-GuiTest-1.60/eg/showwin.pl Win32-GuiTest-1.60/eg/spy--.pl Win32-GuiTest-1.60/eg/spy.pl Win32-GuiTest-1.60/eg/start.pl Win32-GuiTest-1.60/eg/tab.pl Win32-GuiTest-1.60/eg/waitwindow.pl Win32-GuiTest-1.60/eg/which.pl Win32-GuiTest-1.60/eg/winbmp.pl Win32-GuiTest-1.60/eg/wptr.pl Win32-GuiTest-1.60/GuiTest.xs Win32-GuiTest-1.60/lib/ Win32-GuiTest-1.60/lib/Win32/ Win32-GuiTest-1.60/lib/Win32/GuiTest/ Win32-GuiTest-1.60/lib/Win32/GuiTest/Cmd.pm Win32-GuiTest-1.60/lib/Win32/GuiTest/Examples.pm Win32-GuiTest-1.60/lib/Win32/GuiTest/GuiTest.pc Win32-GuiTest-1.60/lib/Win32/GuiTest.pm Win32-GuiTest-1.60/Makefile.PL Win32-GuiTest-1.60/MANIFEST Win32-GuiTest-1.60/META.json Win32-GuiTest-1.60/META.yml Win32-GuiTest-1.60/perlobject.map Win32-GuiTest-1.60/README Win32-GuiTest-1.60/Recorder/ Win32-GuiTest-1.60/Recorder/Copying.txt Win32-GuiTest-1.60/Recorder/README.txt Win32-GuiTest-1.60/Recorder/Win32GuiTest.exe Win32-GuiTest-1.60/t/ Win32-GuiTest-1.60/t/01_basic.t Win32-GuiTest-1.60/t/02_calc.t Win32-GuiTest-1.60/t/03_cpl.t Win32-GuiTest-1.60/t/04_std.t Win32-GuiTest-1.60/t/05_which.t Win32-GuiTest-1.60/t/06_sendkeys.t Win32-GuiTest-1.60/typemap Could not make: Unknown error Running make test Can't test without successful make Running make install Make had returned bad status, install seems impossible cpan> install Make Running install for module 'Make' Running make for N/NI/NI-S/Make-1.00.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/N/NI/NI-S/Make-1.00.tar.gz Fetching with LWP: http://ppm.activestate.com/CPAN/authors/id/N/NI/NI-S/CHECKSUMS Checksum for C:\Perl64\cpan\sources\authors\id\N\NI\NI-S\Make-1.00.tar +.gz ok Make-1.00/ Make-1.00/bmake Make-1.00/t/ Make-1.00/t/make.t Make-1.00/MANIFEST Make-1.00/Makefile.PL Make-1.00/Changes Make-1.00/Make.pm Make-1.00/MANIFEST.SKIP Make-1.00/README Make-1.00/pmake CPAN.pm: Going to build N/NI/NI-S/Make-1.00.tar.gz Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] Checking if your kit is complete... Looks good Writing Makefile for Make Writing MYMETA.yml and MYMETA.json cp Make.pm blib\lib\Make.pm C:\Perl64\bin\perl.exe -MExtUtils::Command -e cp -- pmake blib\script\ +pmake pl2bat.bat blib\script\pmake dmake.exe: Warning: -- Target [blib\script\pmake] was made but the ti +me stamp has not been upda NI-S/Make-1.00.tar.gz C:\STRAWB~1\c\bin\dmake.exe -- OK Running make test C:\Perl64\bin\perl.exe -MExtUtils::Command -e cp -- pmake blib\script\ +pmake pl2bat.bat blib\script\pmake dmake.exe: Warning: -- Target [blib\script\pmake] was made but the ti +me stamp has not been upda C:\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, + 'blib\lib', 'blib\arch')" t/make.t .. Reading C:\Perl64\cpan\build\Make-1.00-PtRHHv\blib\lib/Mak +e.pm Reading C:\Perl64\cpan\build\Make-1.00-PtRHHv\Makefile t/make.t .. 1/2 # Test 2 got: "Cannot recurse Make - no target C:\\Per +l64\\libConfig.pm in C:/Pe build\\Make-1.00-PtRHHv\\blib\\lib/Make.pm line 454.\n" (t/make.t at l +ine 9) # Expected: "" (Make all) # t/make.t line 9 is: ok($@,'',"Make all"); t/make.t .. Failed 1/2 subtests Test Summary Report ------------------- t/make.t (Wstat: 0 Tests: 2 Failed: 1) Failed test: 2 Files=1, Tests=2, 1 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU +) Result: FAIL Failed 1/1 test programs. 1/2 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' NI-S/Make-1.00.tar.gz C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports NI-S/Make-1.00.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: NI-S/Make-1.00.tar.gz : make_test NO cpan> install Make Running install for module 'Make' Running make for N/NI/NI-S/Make-1.00.tar.gz Has already been unwrapped into directory C:\Perl64\cpan\build\Make- +1.00-PtRHHv Has already been made Running make test C:\Perl64\bin\perl.exe -MExtUtils::Command -e cp -- pmake blib\script\ +pmake pl2bat.bat blib\script\pmake dmake.exe: Warning: -- Target [blib\script\pmake] was made but the ti +me stamp has not been upda C:\Perl64\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0, + 'blib\lib', 'blib\arch')" t/make.t .. Reading C:\Perl64\cpan\build\Make-1.00-PtRHHv\blib\lib/Mak +e.pm Reading C:\Perl64\cpan\build\Make-1.00-PtRHHv\Makefile t/make.t .. 1/2 # Test 2 got: "Cannot recurse Make - no target C:\\Per +l64\\libConfig.pm in C:/Pe build\\Make-1.00-PtRHHv\\blib\\lib/Make.pm line 454.\n" (t/make.t at l +ine 9) # Expected: "" (Make all) # t/make.t line 9 is: ok($@,'',"Make all"); t/make.t .. Failed 1/2 subtests Test Summary Report ------------------- t/make.t (Wstat: 0 Tests: 2 Failed: 1) Failed test: 2 Files=1, Tests=2, 0 wallclock secs ( 0.05 usr + 0.03 sys = 0.08 CPU +) Result: FAIL Failed 1/1 test programs. 1/2 subtests failed. dmake.exe: Error code 255, while making 'test_dynamic' NI-S/Make-1.00.tar.gz C:\STRAWB~1\c\bin\dmake.exe test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports NI-S/Make-1.00.tar.gz Running make install make test had returned bad status, won't install without force Failed during this command: NI-S/Make-1.00.tar.gz : make_test NO cpan>

Comment on Trouble Installing Win32::GuiTest
Download Code
Re: Trouble Installing Win32::GuiTest
by syphilis (Canon) on Aug 14, 2012 at 03:38 UTC
    I don't know what the problem is, but installing Make is *not* the solution.

    It's unfortunate that cpan.pm still provides such utterly useless default diagnostics.
    Faced with the output that you got when you tried to install Win32::GUI, I would try to build it manually - ie download the Win32::GUI source, unpack the source, cd to the top level source folder, then run 'perl Makefile.PL', 'dmake test', 'dmake install'.

    You should at least then get useful error messages if a problem arises.

    Cheers,
    Rob
      This can be accomplished with  cpanp -z Win32::GuiTest

        It is still throwing the same error.

      Here is the error thrown in the shell.

      C:\strawberry\c>win32guitest.pl Can't locate loadable object for module Win32::GuiTest in @INC (@INC c +ontains: C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread C +:\Users\SPU LLA~1\perl5\lib\perl5/MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5 +\lib\perl5 C:/strawberry/perl/site/lib C:/strawberry/perl/vendor/lib +C:/strawber ry/perl/lib .) at C:/strawberry/perl/lib/DynaLoader.pm line 98 DynaLoader::croak('Can\'t locate loadable object for module Wi +n32::GuiTest in @I...') called at C:/strawberry/perl/lib/DynaLoader.p +m line 160 DynaLoader::bootstrap('Win32::GuiTest', 1.60) called at C:\str +awberry\c\Win32GuiTest.pl line 249

      Rob, Here is the error thrown in the shell.

      C:\strawberry\c>win32guitest.pl Can't locate loadable object for modul +e Win32::GuiTest in @INC (@INC c +ontains: C:\Users\SPULLA~1\perl5\li +b\perl5\MSWin32-x64-multi-thread C +:\Users\SPU LLA~1\perl5\lib\perl5 +/MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5 +\lib\perl5 C:/stra +wberry/perl/site/lib C:/strawberry/perl/vendor/lib +C:/strawber ry/pe +rl/lib .) at C:/strawberry/perl/lib/DynaLoader.pm line 98 DynaLoader: +:croak('Can\'t locate loadable object for module Wi +n32::GuiTest in +@I...') called at C:/strawberry/perl/lib/DynaLoader.p +m line 160 Dyn +aLoader::bootstrap('Win32::GuiTest', 1.60) called at C:\str +awberry\ +c\Win32GuiTest.pl line 249

      Rob, I have tried again to so if it works, but could not able to do it. Here is the error, it is throwing now.

      dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\Gu +iTest.dll'
        dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\GuiTest.dll'

        I'd need to see the full output from the 'dmake' step.

        Also can you give us the output of perl -V (that's an *uppercase* V).

        Win32-GuiTest-1.60 builds and tests fine for me with both 32-bit and 64-bit Strawberry Perl 5.16.0.

        Cheers,
        Rob

      Rob, Per your suggestions. I have successfully installed the Win32-GuiTest-1.60 in my system. Thank you very much for the help.

        Hey Anonymous, Can you plz tell me how u compile Win32-GuiTest_1.60 on perl 64 bit 5.14.2 using 64 bit compiler. I am still not able to build successfully even using ExtUtils::FakeConfig. Can you please provide me steps... Thanks.
Re: Trouble Installing Win32::GuiTest
by rpnoble419 (Pilgrim) on Aug 14, 2012 at 07:24 UTC

    From the log it looks like your are running a Perl 64bit, but what version? Have you tried a 32bit install? According to ActiveState this module is not compatible with their Perl versions 5.14 and up.

    http://code.activestate.com/ppm/Win32-GuiTest/

    I have 32-bit Strawberry 5.12.3 on my Win Server 2008 and Win32::Gui installed with out issue...

      According to ActiveState this module is not compatible with their Perl versions 5.14 and up

      Do you have some details on that ?

      I don't know of any good reason that it should build on 5.12 64-bit, but not on 5.14 64-bit. (Not to say there isn't one, but :-)

      Cheers,
      Rob

        How can I report this bug to CPAN author?

        I don't, but I could not find the build reports for Win32::GuiTest and I noticed that he was using the ActiveState PPM repository so I made the assumption that he was looking to them for the distro...

        UPDATE

        Based on a link from another node I found the testing matrix for Win32::GuiTest. Here it is http://matrix.cpantesters.org/?dist=Win32-GuiTest%201.60

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://987215]
Approved by GrandFather
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2014-07-10 01:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (198 votes), past polls