Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Cannot install UUID Module

by pryrt (Prior)
on Dec 16, 2019 at 14:26 UTC ( #11110247=note: print w/replies, xml ) Need Help??


in reply to Cannot install UUID Module

The CPAN Testers report says UUID-0.28 can successfully install on Win 10, Strawberry Perl v5.30.1; unfortunately, I don't know why they didn't have problems with the library when you did

Do you absolutely need UUID? Or could you use Data::UUID instead? That one installed for me with 5.30.0 with no problem (though you might need to create c:\tmp)

I decided to see whether UUID worked for me, using the cpanm client to --look inside the distribution to manually do the build, test, and install steps separately. I didn't install any separate libraries before running this. I included my perl -V, in case that will help you. I did not have any problems; maybe this will give some hints as to what's different.

C:\usr\local\share\PassThru\perl>cpanm --look UUID --> Working on UUID Fetching http://www.cpan.org/authors/id/J/JR/JRM/UUID-0.28.tar.gz ... +OK Entering C:/pryrt/.cpanm/work/1576505841.9756/UUID-0.28 with C:\Window +s\system32\cmd.exe Microsoft Windows [Version 10.0.18362.535] (c) 2019 Microsoft Corporation. All rights reserved. C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>ls -latr total 80 -rw-rw-rw- 1 peter.jones 0 183 2018-12-28 21:50 MANIFEST -rw-rw-rw- 1 peter.jones 0 9040 2018-12-28 21:50 License -rw-rw-rw- 1 peter.jones 0 14747 2018-12-28 21:56 UUID.xs -rw-rw-rw- 1 peter.jones 0 5760 2018-12-28 22:26 Changes -rw-rw-rw- 1 peter.jones 0 7014 2018-12-31 13:39 UUID.pm -rwxrwxrwx 1 peter.jones 0 9572 2018-12-31 13:45 Makefile.PL -rw-rw-rw- 1 peter.jones 0 6356 2018-12-31 13:48 README -rw-rw-rw- 1 peter.jones 0 594 2018-12-31 13:49 META.yml -rw-rw-rw- 1 peter.jones 0 985 2018-12-31 13:49 META.json drw-rw-rw- 3 peter.jones 0 0 2019-12-16 06:17 .. drw-rw-rw- 2 peter.jones 0 0 2019-12-16 06:17 t drw-rw-rw- 3 peter.jones 0 4096 2019-12-16 06:17 . C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>perl Makefile.PL Checking if your kit is complete... Looks good Generating a gmake-style Makefile Writing Makefile for UUID Writing MYMETA.yml and MYMETA.json C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>ls -latr total 132 -rw-rw-rw- 1 peter.jones 0 183 2018-12-28 21:50 MANIFEST -rw-rw-rw- 1 peter.jones 0 9040 2018-12-28 21:50 License -rw-rw-rw- 1 peter.jones 0 14747 2018-12-28 21:56 UUID.xs -rw-rw-rw- 1 peter.jones 0 5760 2018-12-28 22:26 Changes -rw-rw-rw- 1 peter.jones 0 7014 2018-12-31 13:39 UUID.pm -rwxrwxrwx 1 peter.jones 0 9572 2018-12-31 13:45 Makefile.PL -rw-rw-rw- 1 peter.jones 0 6356 2018-12-31 13:48 README -rw-rw-rw- 1 peter.jones 0 594 2018-12-31 13:49 META.yml -rw-rw-rw- 1 peter.jones 0 985 2018-12-31 13:49 META.json drw-rw-rw- 3 peter.jones 0 0 2019-12-16 06:17 .. drw-rw-rw- 2 peter.jones 0 0 2019-12-16 06:17 t -rw-rw-rw- 1 peter.jones 0 41075 2019-12-16 06:17 Makefile -rw-rw-rw- 1 peter.jones 0 1127 2019-12-16 06:17 MYMETA.json drw-rw-rw- 3 peter.jones 0 4096 2019-12-16 06:17 . -rw-rw-rw- 1 peter.jones 0 658 2019-12-16 06:17 MYMETA.yml C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>gmake cp UUID.pm blib\lib\UUID.pm Running Mkbootstrap for UUID () "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command -e chmod -- 644 "UUID.bs" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command::MM -e cp_nonempty -- UUID.bs blib\arch\auto\UUID\UUID.bs +644 "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" "C:\usr\l +ocal\apps\BERRYBREW\perls\system\perl\lib\ExtUtils/xsubpp" -typemap +C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\ perl\lib\ExtUtils\typemap UUID.xs > UUID.xsc "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command -e mv -- UUID.xsc UUID.c gcc -c -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANSI_STDI +O -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS + -DUSE_PERLIO -fwrapv -fno-strict-aliasin g -mms-bitfields -s -O2 -DVERSION=\"0.28\" -DXS_VERSION=\"0.28\" "- +IC:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\lib\CORE" -DPERL__UUI +D__WIN_INT -DPERL__UUID__STRUCT_SZ=16 -DP ERL__UUID__RPC_H UUID.c "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Mksymlists \ -e "Mksymlists('NAME'=>\"UUID\", 'DLBASE' => 'UUID', 'DL_FUNCS' = +> { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => []);" g++.exe UUID.def -o blib\arch\auto\UUID\UUID.xs.dll -mdll -s -L"C:\USR +\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\lib\CORE" -L"C:\USR\LOCAL\APP +S\BERRYBREW\PERLS\SYSTEM\c\lib" UUID.o "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\lib\CORE\libperl530.a" +"C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\li +brpcrt4.a" "C:\USR\LOCAL\APPS\BERRYBREW\P ERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libmoldname.a" "C:\USR\LOCAL\APPS +\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libkernel32.a" "C:\U +SR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x8 6_64-w64-mingw32\lib\libuser32.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\S +YSTEM\c\x86_64-w64-mingw32\lib\libgdi32.a" "C:\USR\LOCAL\APPS\BERRYBR +EW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\ libwinspool.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64- +mingw32\lib\libcomdlg32.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\ +c\x86_64-w64-mingw32\lib\libadvapi32.a" " C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libs +hell32.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-ming +w32\lib\libole32.a" "C:\USR\LOCAL\APPS\BE RRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\liboleaut32.a" "C:\USR\L +OCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libnetapi32 +.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SY STEM\c\x86_64-w64-mingw32\lib\libuuid.a" "C:\USR\LOCAL\APPS\BERRYBREW\ +PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libws2_32.a" "C:\USR\LOCAL\APPS +\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-ming w32\lib\libmpr.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w +64-mingw32\lib\libwinmm.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\ +c\x86_64-w64-mingw32\lib\libversion.a" "C :\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libod +bc32.a" "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw3 +2\lib\libodbccp32.a" "C:\USR\LOCAL\APPS\B ERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--en +able-auto-image-base "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command -e chmod -- 755 blib\arch\auto\UUID\UUID.xs.dll C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>gmake test "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command::MM -e cp_nonempty -- UUID.bs blib\arch\auto\UUID\UUID.bs +644 "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" "-MExtUti +ls::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switch +es; test_harness(0, 'blib\lib', 'blib\arc h')" t/*.t t/test.t .. ok All tests successful. Files=1, Tests=38, 1 wallclock secs ( 0.02 usr + 0.05 sys = 0.06 CP +U) Result: PASS C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>perl -V Summary of my perl5 (revision 5 version 30 subversion 0) configuration +: Platform: osname=MSWin32 osvers=10.0.17763.529 archname=MSWin32-x64-multi-thread uname='Win32 strawberry-perl 5.30.0.1 #1 Thu May 23 12:20:46 2019 +x64' config_args='undef' hint=recommended useposix=true d_sigaction=undef useithreads=define usemultiplicity=define use64bitint=define use64bitall=undef uselongdouble=undef usemymalloc=n default_inc_excludes_dot=define bincompat5005=undef Compiler: cc='gcc' ccflags =' -s -O2 -DWIN32 -DWIN64 -DCONSERVATIVE -D__USE_MINGW_ANS +I_STDIO -DPERL_TEXTMODE_SCRIPTS -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLIC +IT_SYS -DUSE_PERLIO -fwrapv -fno-strict-a liasing -mms-bitfields' optimize='-s -O2' cppflags='-DWIN32' ccversion='' gccversion='8.3.0' gccosandvers='' intsize=4 longsize=4 ptrsize=8 doublesize=8 byteorder=12345678 doublekind=3 d_longlong=define longlongsize=8 d_longdbl=define longdblsize=16 longdblkind=3 ivtype='long long' ivsize=8 nvtype='double' nvsize=8 Off_t='long long' lseeksize=8 alignbytes=8 prototype=define Linker and Libraries: ld='g++.exe' ldflags ='-s -L"C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\lib\ +CORE" -L"C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\lib"' libpth=C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\lib C:\USR\LOCAL +\APPS\BERRYBREW\PERLS\SYSTEM\c\x86_64-w64-mingw32\lib C:\USR\LOCAL\AP +PS\BERRYBREW\PERLS\SYSTEM\c\lib\gcc\x86_6 4-w64-mingw32\8.3.0 libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 + -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 - +lmpr -lwinmm -lversion -lodbc32 -lodbccp3 2 -lcomctl32 perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomd +lg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_ +32 -lmpr -lwinmm -lversion -lodbc32 -lodb ccp32 -lcomctl32 libc= so=dll useshrplib=true libperl=libperl530.a gnulibc_version='' Dynamic Linking: dlsrc=dl_win32.xs dlext=xs.dll d_dlsymun=undef ccdlflags=' ' cccdlflags=' ' lddlflags='-mdll -s -L"C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\pe +rl\lib\CORE" -L"C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\c\lib"' Characteristics of this binary (from libperl): Compile-time options: HAS_TIMES HAVE_INTERP_INTERN MULTIPLICITY PERLIO_LAYERS PERL_COPY_ON_WRITE PERL_DONT_CREATE_GVSV PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS PERL_MALLOC_WRAP PERL_OP_PARENT PERL_PRESERVE_IVUV USE_64_BIT_INT USE_ITHREADS USE_LARGE_FILES USE_LOCALE USE_LOCALE_COLLATE USE_LOCALE_CTYPE USE_LOCALE_NUMERIC USE_LOCALE_TIME USE_PERLIO USE_PERL_ATOF Built under MSWin32 Compiled at May 23 2019 12:26:54 @INC: C:/usr/local/apps/BERRYBREW/perls/system/perl/site/lib/MSWin32-x64 +-multi-thread C:/usr/local/apps/BERRYBREW/perls/system/perl/site/lib C:/usr/local/apps/BERRYBREW/perls/system/perl/vendor/lib C:/usr/local/apps/BERRYBREW/perls/system/perl/lib C:\pryrt\.cpanm\work\1576505841.9756\UUID-0.28>gmake install "C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\PERL\BIN\perl.exe" -MExtUtil +s::Command::MM -e cp_nonempty -- UUID.bs blib\arch\auto\UUID\UUID.bs +644 Files found in blib\arch: installing files in blib\lib into architectu +re dependent library tree Installing C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\site\lib\auto +\UUID\UUID.xs.dll Installing C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTEM\perl\site\lib\UUID +.pm Appending installation info to C:\USR\LOCAL\APPS\BERRYBREW\PERLS\SYSTE +M\perl\lib/perllocal.pod

update

Wait, re-reading your error messages, # Compiler seems to be C:\MinGW\bin\gcc.exe. That's not normal if you're using Strawberry perl. Before trying to use the toolchain to build non-pure-perl modules, it's best to make sure that all the strawberry paths are before any other compilers in your path. If you were using portable strawberry, you could just run portableperl.bat portableshell.bat. Otherwise, run PATH=c:\strawberry\c\bin;c:\strawberry\perl\bin;c:\strawberry\perl\site\bin;%PATH% before trying to install using cpanm UUID.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2020-07-03 16:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?