I'm hella Perl n00b so please be gentle...afterall, I've never done this before.
I cannot get Math-Random to install. I have tried cpanm (with and without force) and have also tried manually from the tarball. MakeMaker is installed and up to date which seems to be it's only dependency based on the makefile.
The module install is failing to make the Random.xs.dll file. Someone has asked the monks a similar question here (http://www.perlmonks.org/?node_id=1001132) but their solution does not work for me.
AutoInstall:
cpanm Math::Random
--> Working on Math::Random
Fetching http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Random-0.72.
+tar.gz ... OK
Configuring Math-Random-0.72 ... OK
Building and testing Math-Random-0.72 ... FAIL
The log file for the autobuild is:
cpanm (App::cpanminus) 1.7043 on perl 5.026000 built for MSWin32-x64-m
+ulti-thread
Work directory is C:\Users\BOBTEW~1/.cpanm/work/1505582396.6584
You have make D:\Strawberry\c\bin\gmake.exe
You have LWP 6.26
Falling back to Archive::Tar 2.26
You have C:\Rtools\bin\unzip.exe
Searching Math::Random () on cpanmetadb ...
--> Working on Math::Random
Fetching http://www.cpan.org/authors/id/G/GR/GROMMEL/Math-Random-0.72.
+tar.gz
-> OK
Unpacking Math-Random-0.72.tar.gz
Entering Math-Random-0.72
Checking configure dependencies from META.yml
Checking if you have ExtUtils::MakeMaker 6.58 ... Yes (7.30)
Configuring Math-Random-0.72
Running Makefile.PL
Checking if your kit is complete...
Looks good
Generating a gmake-style Makefile
Writing Makefile for Math::Random
Writing MYMETA.yml and MYMETA.json
-> OK
Checking dependencies from MYMETA.json ...
Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.30)
Building and testing Math-Random-0.72
cp test2.pl blib\lib\Math\test2.pl
cp example.pl blib\lib\Math\example.pl
cp test1.pl blib\lib\Math\test1.pl
cp Random.pm blib\lib\Math\Random.pm
AutoSplitting blib\lib\Math\Random.pm (blib\lib\auto\Math\Random)
Running Mkbootstrap for Random ()
"D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e chmod -- 644
+"Random.bs"
"D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command::MM -e cp_nonemp
+ty -- Random.bs blib\arch\auto\Math\Random\Random.bs 644
"D:\Strawberry\perl\bin\perl.exe" "D:\Strawberry\perl\lib\ExtUtils/xsu
+bpp" -typemap D:\STRAWB~1\perl\lib\ExtUtils\typemap Random.xs > Ran
+dom.xsc
"D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Command -e mv -- Random.
+xsc Random.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-aliasing -mms-bitfields -s -O2 -D
+VERSION=\"0.72\" -DXS_VERSION=\"0.72\" "-ID:\STRAWB~1\perl\lib\CORE"
+ Random.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-aliasing -mms-bitfields -s -O2 -D
+VERSION=\"0.72\" -DXS_VERSION=\"0.72\" "-ID:\STRAWB~1\perl\lib\CORE"
+ com.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-aliasing -mms-bitfields -s -O2 -D
+VERSION=\"0.72\" -DXS_VERSION=\"0.72\" "-ID:\STRAWB~1\perl\lib\CORE"
+ helper.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-aliasing -mms-bitfields -s -O2 -D
+VERSION=\"0.72\" -DXS_VERSION=\"0.72\" "-ID:\STRAWB~1\perl\lib\CORE"
+ linpack.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-aliasing -mms-bitfields -s -O2 -D
+VERSION=\"0.72\" -DXS_VERSION=\"0.72\" "-ID:\STRAWB~1\perl\lib\CORE"
+ randlib.c
"D:\Strawberry\perl\bin\perl.exe" -MExtUtils::Mksymlists \
-e "Mksymlists('NAME'=>\"Math::Random\", 'DLBASE' => 'Random', 'D
+L_FUNCS' => { }, 'FUNCLIST' => [], 'IMPORTS' => { }, 'DL_VARS' => [
+]);"
g++ Random.def -o blib\arch\auto\Math\Random\Random.xs.dll -mdll -s -L
+"D:\STRAWB~1\perl\lib\CORE" -L"D:\STRAWB~1\c\lib" Random.o com.o help
+er.o linpack.o randlib.o "D:\STRAWB~1\perl\lib\CORE\libperl526.a" "
+D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libm.a" "D:\STRAWB~1\c\x86_64-w6
+4-mingw32\lib\libmoldname.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\li
+bkernel32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuser32.a" "D:\S
+TRAWB~1\c\x86_64-w64-mingw32\lib\libgdi32.a" "D:\STRAWB~1\c\x86_64-w6
+4-mingw32\lib\libwinspool.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\li
+bcomdlg32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libadvapi32.a" "D:
+\STRAWB~1\c\x86_64-w64-mingw32\lib\libshell32.a" "D:\STRAWB~1\c\x86_6
+4-w64-mingw32\lib\libole32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\l
+iboleaut32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libnetapi32.a" "D
+:\STRAWB~1\c\x86_64-w64-mingw32\lib\libuuid.a" "D:\STRAWB~1\c\x86_64-
+w64-mingw32\lib\libws2_32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\li
+bmpr.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libwinmm.a" "D:\STRAWB~
+1\c\x86_64-w64-mingw32\lib\libversion.a" "D:\STRAWB~1\c\x86_64-w64-mi
+ngw32\lib\libodbc32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libodbcc
+p32.a" "D:\STRAWB~1\c\x86_64-w64-mingw32\lib\libcomctl32.a" -Wl,--ena
+ble-auto-image-base
Random.o:Random.c:(.text+0x9): undefined reference to `_imp__Perl_get_
+context'
Random.o:Random.c:(.text+0x75): undefined reference to `_imp__Perl_sv_
+2iv_flags'
Random.o:Random.c:(.text+0x8d): undefined reference to `_imp__Perl_sv_
+newmortal'
Random.o:Random.c:(.text+0x115): undefined reference to `_imp__Perl_sv
+_setnv_mg'
Random.o:Random.c:(.text+0x144): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x159): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x1be): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x1fa): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x251): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x268): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x2cd): undefined reference to `_imp__Perl_sv
+_2pv_flags'
Random.o:Random.c:(.text+0x30f): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x329): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x398): undefined reference to `_imp__Perl_st
+ack_grow'
Random.o:Random.c:(.text+0x3a9): undefined reference to `_imp__Perl_ne
+wSViv'
Random.o:Random.c:(.text+0x3c9): undefined reference to `_imp__Perl_sv
+_2mortal'
Random.o:Random.c:(.text+0x42a): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x439): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x4ae): undefined reference to `_imp__Perl_sv
+_2pv_flags'
Random.o:Random.c:(.text+0x4f5): undefined reference to `_imp__Perl_st
+ack_grow'
Random.o:Random.c:(.text+0x506): undefined reference to `_imp__Perl_ne
+wSViv'
Random.o:Random.c:(.text+0x526): undefined reference to `_imp__Perl_sv
+_2mortal'
Random.o:Random.c:(.text+0x5a2): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x5b9): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x625): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x663): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0x67d): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0x71d): undefined reference to `_imp__Perl_sv
+_setiv_mg'
Random.o:Random.c:(.text+0x764): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x779): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x7e5): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x823): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0x83d): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0x8dd): undefined reference to `_imp__Perl_sv
+_setiv_mg'
Random.o:Random.c:(.text+0x924): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0x939): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0x9a5): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x9e3): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0x9fd): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0xaa3): undefined reference to `_imp__Perl_sv
+_setiv_mg'
Random.o:Random.c:(.text+0xaf4): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0xb09): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0xb75): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0xb8f): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0xc3b): undefined reference to `_imp__Perl_sv
+_setiv_mg'
Random.o:Random.c:(.text+0xc69): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0xc79): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0xce1): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0xd21): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0xd3b): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0xdc7): undefined reference to `_imp__Perl_sv
+_setnv_mg'
Random.o:Random.c:(.text+0xe18): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0xe28): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0xe85): undefined reference to `_imp__Perl_sv
+_2iv_flags'
Random.o:Random.c:(.text+0xec4): undefined reference to `_imp__Perl_cr
+oak_xs_usage'
Random.o:Random.c:(.text+0xed9): undefined reference to `_imp__Perl_ge
+t_context'
Random.o:Random.c:(.text+0xf41): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0xf81): undefined reference to `_imp__Perl_sv
+_2nv_flags'
Random.o:Random.c:(.text+0xf9b): undefined reference to `_imp__Perl_sv
+_newmortal'
Random.o:Random.c:(.text+0x1027): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x1078): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1089): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x10f1): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1131): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1171): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x118b): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1233): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x12a8): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x12b9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1321): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1361): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x137b): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1407): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x1458): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1469): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x14d5): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x14ed): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x158b): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x15b5): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x15c9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x162e): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x166a): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x16c1): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x16d9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x173e): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x177a): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x17d1): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x17e9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1855): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x186d): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x190b): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x1935): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1949): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x19b5): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x19cd): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1a6b): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x1a95): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1aa9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1aeb): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1b90): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x1ba7): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1bb9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1c25): undefined reference to `_imp__Perl_s
+v_2iv_flags'
Random.o:Random.c:(.text+0x1c3d): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1cdb): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x1d05): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1d19): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1d81): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1dc1): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1ddb): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x1e67): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x1eb8): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x1ec9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x1f31): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1f71): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x1f8b): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x2017): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x2068): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x2079): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x20e1): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x20fb): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x2186): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x21b8): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x21c9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x2231): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x224b): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x22d6): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x2308): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x2319): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x2381): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x23c1): undefined reference to `_imp__Perl_s
+v_2nv_flags'
Random.o:Random.c:(.text+0x23db): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x2467): undefined reference to `_imp__Perl_s
+v_setnv_mg'
Random.o:Random.c:(.text+0x24b8): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x24c9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x250b): undefined reference to `_imp__Perl_s
+v_newmortal'
Random.o:Random.c:(.text+0x2518): undefined reference to `_imp__Perl_s
+eed'
Random.o:Random.c:(.text+0x25c0): undefined reference to `_imp__Perl_s
+v_setiv_mg'
Random.o:Random.c:(.text+0x25d7): undefined reference to `_imp__Perl_c
+roak_xs_usage'
Random.o:Random.c:(.text+0x25e9): undefined reference to `_imp__Perl_g
+et_context'
Random.o:Random.c:(.text+0x2614): undefined reference to `_imp__Perl_x
+s_handshake'
Random.o:Random.c:(.text+0x2622): undefined reference to `_imp__Perl_n
+ewXS_deffile'
Random.o:Random.c:(.text+0x26c9): undefined reference to `_imp__Perl_n
+ewXS_flags'
Random.o:Random.c:(.text+0x2932): undefined reference to `_imp__Perl_x
+s_boot_epilog'
collect2.exe: error: ld returned 1 exit status
gmake: *** [Makefile:490: blib\arch\auto\Math\Random\Random.xs.dll] Er
+ror 1
-> FAIL Installing Math::Random failed. See C:\Users\BOBTEW~1\.cpanm\w
+ork\1505582396.6584\build.log for details. Retry with --force to forc
+e install it.
Manual install with tarball pre-unpacked in ./Strawberry/cpan/build results in the same error as the auto install (see above)
cd ./Strawberry/cpan/build/Math-Random0.72
perl Makefile.PL
gmake
As per here: http://www.perlmonks.org/?node_id=1001132 ; when I run objdump, the undefined references listed above are listed as so (_imp__Perl_get_context given as an example)
dmgds00385.o: file format pe-x86-64
SYMBOL TABLE:
[ 0](sec 1)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .tex
+t
[ 1](sec 2)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .dat
+a
[ 2](sec 3)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .bss
[ 3](sec 4)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .ida
+ta$7
[ 4](sec 5)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .ida
+ta$5
[ 5](sec 6)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .ida
+ta$4
[ 6](sec 7)(fl 0x00)(ty 0)(scl 3) (nx 0) 0x0000000000000000 .ida
+ta$6
[ 7](sec 1)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0000000000000000 Perl
+_get_context
[ 8](sec 5)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0000000000000000 __im
+p_Perl_get_context
[ 9](sec 0)(fl 0x00)(ty 0)(scl 2) (nx 0) 0x0000000000000000 _hea
+d____lib_CORE_libperl526_a
Finally, perl -V outputs
Summary of my perl5 (revision 5 version 26 subversion 0) configuration
+:
Platform:
osname=MSWin32
osvers=6.3
archname=MSWin32-x64-multi-thread
uname='Win32 strawberry-perl 5.26.0.2 #1 Sat Sep 2 16:25:32 2017
+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-aliasing -mms-bitfields'
optimize='-s -O2'
cppflags='-DWIN32'
ccversion=''
gccversion='7.1.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++'
ldflags ='-s -L"D:\STRAWB~1\perl\lib\CORE" -L"D:\STRAWB~1\c\lib"'
libpth=D:\STRAWB~1\c\lib D:\STRAWB~1\c\x86_64-w64-mingw32\lib D:\S
+TRAWB~1\c\lib\gcc\x86_64-w64-mingw32\7.1.0
libs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32
+ -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_32 -
+lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
perllibs= -lmoldname -lkernel32 -luser32 -lgdi32 -lwinspool -lcomd
+lg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -lnetapi32 -luuid -lws2_
+32 -lmpr -lwinmm -lversion -lodbc32 -lodbccp32 -lcomctl32
libc=
so=dll
useshrplib=true
libperl=libperl526.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_win32.xs
dlext=xs.dll
d_dlsymun=undef
ccdlflags=' '
cccdlflags=' '
lddlflags='-mdll -s -L"D:\STRAWB~1\perl\lib\CORE" -L"D:\STRAWB~1\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 Sep 2 2017 16:39:31
@INC:
D:/Strawberry/perl/site/lib/MSWin32-x64-multi-thread
D:/Strawberry/perl/site/lib
D:/Strawberry/perl/vendor/lib
D:/Strawberry/perl/lib
Thanks :)