Beefy Boxes and Bandwidth Generously Provided by pair Networks Bob
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Trouble Installing Win32::GuiTest

by syphilis (Canon)
on Aug 14, 2012 at 03:38 UTC ( #987258=note: print w/ replies, xml ) Need Help??


in reply to Trouble Installing Win32::GuiTest

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


Comment on Re: Trouble Installing Win32::GuiTest
Re^2: Trouble Installing Win32::GuiTest
by Anonymous Monk on Aug 14, 2012 at 06:22 UTC
    This can be accomplished with  cpanp -z Win32::GuiTest

      It is still throwing the same error.

Re^2: Trouble Installing Win32::GuiTest
by Anonymous Monk on Aug 14, 2012 at 17:29 UTC

    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
Re^2: Trouble Installing Win32::GuiTest
by Anonymous Monk on Aug 14, 2012 at 17:31 UTC

    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
Re^2: Trouble Installing Win32::GuiTest
by Anonymous Monk on Aug 14, 2012 at 22:00 UTC

    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, Here is the full output

        C:\strawberry\Win32-GuiTest-1.60>dmake cp lib/Win32/GuiTest/GuiTest.pc blib\lib\Win32\GuiTest\GuiTest.pc cp lib/Win32/GuiTest/Examples.pm blib\lib\Win32\GuiTest\Examples.pm cp lib/Win32/GuiTest.pm blib\lib\Win32\GuiTest.pm cp lib/Win32/GuiTest/Cmd.pm blib\lib\Win32\GuiTest\Cmd.pm C:\Perl64\bin\perl.exe -IC:\Perl64\lib -IC:\Perl64\lib C:\Perl64\lib\E +xtUtils\xsubpp -typemap C:\Perl64\lib\ExtUtils\typemap -typemap perl +object.map -typemap typemap GuiTest.xs >xstmp.c && C:\Perl64\bin\perl.exe -MExtUt +ils::Command -e mv -- xstmp.c GuiTest.cpp C:/STRAWB~1/c/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRIC +T -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE +-DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-stri +ct-aliasing -mms-bitfields -O2 -DVERSION=\"1.60\" -DXS_VERSIO +N=\"1.60\" "-IC:\Perl64\lib\CORE" GuiTest.cpp C:/STRAWB~1/c/bin/gcc.exe -c -DNDEBUG -DWIN32 -D_CONSOLE -DNO_STRIC +T -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_SITECUSTOMIZE +-DPERL_IMPL ICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRIBUTE -fno-stri +ct-aliasing -mms-bitfields -O2 -DVERSION=\"1.60\" -DXS_VERSIO +N=\"1.60\" "-IC:\Perl64\lib\CORE" DibSect.cpp Running Mkbootstrap for Win32::GuiTest () C:\Perl64\bin\perl.exe -MExtUtils::Command -e chmod -- 644 GuiTest.bs C:\Perl64\bin\perl.exe -MExtUtils::Mksymlists \ -e "Mksymlists('NAME'=>\"Win32::GuiTest\", 'DLBASE' => 'GuiTest', + 'DL_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' = +> []);" Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] dlltool --def GuiTest.def --output-exp dll.exp C:\STRAWB~1\c\bin\g++.exe -o blib\arch\auto\Win32\GuiTest\GuiTest.dll +-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl64\lib\CORE" GuiTest.o D +ibSect.o C:\Perl64\lib\CORE\perl514.lib -lkernel32 -luser32 -lgdi32 -lwinspool +-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid +-lws2_32 -l mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU + -lmsvcrt dll.exp c:/strawb~1/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_ +64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\Gui +Test.dll' C:\strawberry\Win32-GuiTest-1.60>dmake install dlltool --def GuiTest.def --output-exp dll.exp C:\STRAWB~1\c\bin\g++.exe -o blib\arch\auto\Win32\GuiTest\GuiTest.dll +-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl64\lib\CORE" GuiTest.o D +ibSect.o C:\Perl64\lib\CORE\perl514.lib -lkernel32 -luser32 -lgdi32 -lwinspool +-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid +-lws2_32 -l mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU + -lmsvcrt dll.exp c:/strawb~1/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_ +64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\Gui +Test.dll' C:\strawberry\Win32-GuiTest-1.60>dmake test dlltool --def GuiTest.def --output-exp dll.exp C:\STRAWB~1\c\bin\g++.exe -o blib\arch\auto\Win32\GuiTest\GuiTest.dll +-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl64\lib\CORE" GuiTest.o D +ibSect.o C:\Perl64\lib\CORE\perl514.lib -lkernel32 -luser32 -lgdi32 -lwinspool +-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid +-lws2_32 -l mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU + -lmsvcrt dll.exp c:/strawb~1/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_ +64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\Gui +Test.dll' C:\strawberry\Win32-GuiTest-1.60>dmake install dlltool --def GuiTest.def --output-exp dll.exp C:\STRAWB~1\c\bin\g++.exe -o blib\arch\auto\Win32\GuiTest\GuiTest.dll +-Wl,--base-file -Wl,dll.base -mdll -L"C:\Perl64\lib\CORE" GuiTest.o D +ibSect.o C:\Perl64\lib\CORE\perl514.lib -lkernel32 -luser32 -lgdi32 -lwinspool +-lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid +-lws2_32 -l mpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU + -lmsvcrt dll.exp c:/strawb~1/c/bin/../lib/gcc/x86_64-w64-mingw32/4.4.7/../../../../x86_ +64-w64-mingw32/bin/ld.exe: cannot find -lbufferoverflowU collect2: ld returned 1 exit status dmake: Error code 129, while making 'blib\arch\auto\Win32\GuiTest\Gui +Test.dll' C:\strawberry\Win32-GuiTest-1.60>dir Volume in drive C is OSPART Volume Serial Number is B87B-3490

        Here is the fill output of it. But this time, it gave me dmake: Error code 255, while making 'test_dynamic'

        C:\strawberry\Win32-GuiTest-1.60>install dmake 'install' is not recognized as an internal or external command, operable program or batch file. C:\strawberry\Win32-GuiTest-1.60>dmake install dmake: makefile: line 375: Warning: -- Duplicate target [GuiTest.o] Skip blib\lib\Win32\GuiTest\GuiTest.pc (unchanged) Skip blib\lib\Win32\GuiTest\Examples.pm (unchanged) Skip blib\lib\Win32\GuiTest.pm (unchanged) Skip blib\lib\Win32\GuiTest\Cmd.pm (unchanged) gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_ +SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S +YS -fno-str ict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.60\" -DXS_V +ERSION=\"1.60\" "-IC:\strawberry\perl\lib\CORE" GuiTest.cpp gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_ +SCRIPTS -DUSE_SITECUSTOMIZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_S +YS -fno-str ict-aliasing -mms-bitfields -s -O2 -DVERSION=\"1.60\" -DXS_V +ERSION=\"1.60\" "-IC:\strawberry\perl\lib\CORE" DibSect.cpp Running Mkbootstrap for Win32::GuiTest () C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 Gu +iTest.bs dlltool --def GuiTest.def --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -Wl,--base-file -Wl,dl +l.base -mdll -s -L"C:\strawberry\perl\lib\CORE" -L"C:\strawberry\c\li +b" GuiTest. o DibSect.o C:\strawberry\perl\lib\CORE\libperl514.a -lmoldname -lke +rnel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -l +ole32 -lole aut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm -lversion -lodbc32 -lod +bccp32 -lcomctl32 dll.exp dlltool --def GuiTest.def --base-file dll.base --output-exp dll.exp g++ -o blib\arch\auto\Win32\GuiTest\GuiTest.dll -mdll -s -L"C:\strawbe +rry\perl\lib\CORE" -L"C:\strawberry\c\lib" GuiTest.o DibSect.o C:\s +trawberry\p erl\lib\CORE\libperl514.a -lmoldname -lkernel32 -luser32 -lgdi32 -lwin +spool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 - +luuid -lws2 _32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32 dll.exp C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 755 bl +ib\arch\auto\Win32\GuiTest\GuiTest.dll C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e cp -- GuiTest.b +s blib\arch\auto\Win32\GuiTest\GuiTest.bs C:\strawberry\perl\bin\perl.exe -MExtUtils::Command -e chmod -- 644 bl +ib\arch\auto\Win32\GuiTest\GuiTest.bs Files found in blib\arch: installing files in blib\lib into architectu +re dependent library tree Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +auto\Win32\GuiTest\GuiTest.bs Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +auto\Win32\GuiTest\GuiTest.dll Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +Win32\GuiTest.pm Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +Win32\GuiTest\Cmd.pm Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +Win32\GuiTest\Examples.pm Installing C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread\ +Win32\GuiTest\GuiTest.pc Appending installation info to C:\Users\SPULLA~1\perl5\lib\perl5\MSWin +32-x64-multi-thread/perllocal.pod C:\strawberry\Win32-GuiTest-1.60>dmake test dmake: makefile: line 375: Warning: -- Duplicate target [GuiTest.o] C:\strawberry\perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_h +arness(0, 'blib\lib', 'blib\arch')" t/*.t t/01_basic.t ..... 3/? Bailout called. Further testing stopped: Plea +se close existing Notepad windows before proceeding FAILED--Further testing stopped: Please close existing Notepad windows + before proceeding dmake: Error code 255, while making 'test_dynamic' C:\strawberry\Win32-GuiTest-1.60>

        Hi Rob, Here is the output of the perl -V.

        C:\strawberry\Win32-GuiTest-1.60>perl -V Set up gcc environment - 4.4.7 20111023 (prerelease) [svn/rev.180339 - + mingw-w64/oz] Summary of my perl5 (revision 5 version 14 subversion 2) configuration +: Platform: osname=MSWin32, osvers=5.2, archname=MSWin32-x64-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef useithreads=define, usemultiplicity=define useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=und +ef use64bitint=define, use64bitall=undef, uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='C:/STRAWB~1/c/bin/gcc.exe', ccflags ='-DNDEBUG -DWIN32 -D_CONS +OLE -DNO_STRICT -DWIN64 -DCONSERVATIVE -DPERL_TEXTMODE_SCRIPTS -DUSE_ +SITECUSTOMI ZE -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DUSE_PERLIO -DHASATTRI +BUTE -fno-strict-aliasing -mms-bitfields', optimize='-O2', cppflags='-DWIN32' ccversion='', gccversion='4.4.7 20111023 (prerelease) [svn/rev.180 +339 - mingw-w64/oz]', gccosandvers='' intsize=4, longsize=4, ptrsize=8, doublesize=8, byteorder=12345678 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=8 ivtype='__int64', ivsize=8, nvtype='double', nvsize=8, Off_t='__in +t64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='C:\STRAWB~1\c\bin\g++.exe', ldflags ='-L"C:\Perl64\lib\CORE"' libpth=\lib libs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 +-lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lwinmm + -lversion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU -lmsvcrt perllibs=-lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvap +i32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -lmpr -lw +inmm -lvers ion -lodbc32 -lodbccp32 -lcomctl32 -lbufferoverflowU -lmsvcrt libc=msvcrt.lib, so=dll, useshrplib=true, libperl=perl514.lib gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-mdll -L"C:\Perl64\lib\CORE"' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_PRESERVE_IVUV PL_OP_SLAB +_ALLOC USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_PERLIO USE_PERL_ATOF USE_SITECUSTOMIZE Locally applied patches: ActivePerl Build 1402 [295342] Built under MSWin32 Compiled at Oct 7 2011 15:19:36 %ENV: PERL5LIB="C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thre +ad;C:\Users\SPULLA~1\perl5\lib\perl5" PERL_JSON_BACKEND="JSON::XS" PERL_MM_OPT="INSTALL_BASE=C:\Users\SPULLA~1\perl5" PERL_YAML_BACKEND="YAML" @INC: C:\Users\SPULLA~1\perl5\lib\perl5\MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5\lib\perl5/MSWin32-x64-multi-thread C:\Users\SPULLA~1\perl5\lib\perl5 C:/Perl64/site/lib C:/Perl64/lib .
Re^2: Trouble Installing Win32::GuiTest
by Anonymous Monk on Aug 17, 2012 at 18:09 UTC

    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.
        switch to 32bit perl

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (9)
As of 2014-04-17 11:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (445 votes), past polls