无法在 Windows 10 上安装 Wx - Strawberry Perl

Unable to Install Wx - Strawberry Perl on Windows 10

在尝试为 Strawberry Perl 安装 Wx 时,我收到以下错误:

gcc -c -o gcc_mswudll\wxregex_regcomp.o -O2 -mthreads -DHAVE_W32API_H -DNDEBUG -I....\include -I....\lib\gcc_dll\mswu -D__WXMSW__ -D_UNICODE -m64 -MTgcc_mswudll\wxregex_regcomp.o -MFgcc_mswudll\wxregex_regcomp.o.d -MD -MP ../../src/regex/regcomp.c ../../src/regex/regcomp.c:1:0: sorry, unimplemented: 64-bit mode not compiled in makefile.gcc:5702: recipe for target 'gcc_mswudll\wxregex_regcomp.o' failed gmake: *** [gcc_mswudll\wxregex_regcomp.o] Error 1 system: gmake -f makefile.gcc all UNICODE=1 MSLU=0 BUILD=release SHARED=1 DEBUG_INFO=default DEBUG_FLAG=1 LDFLAGS=" -m64" CPPFLAGS="-m64": 512 at inc/My/Build/Win32.pm line 284. MDOOTSON/Alien-wxWidgets-0.67.tar.gz D:\Perl\perl\bin\perl.exe ./Build -- NOT OK Stopping: 'install' failed for 'Alien::wxWidgets'.

所以这实际上似乎在编译本身?使用 CPAN 安装。不知道从这里去哪里。感谢任何帮助。

核心问题是线路

sorry, unimplemented: 64-bit mode not compiled in

所以你在不支持 64 位的 gcc 上使用 -m64 选项

通常我希望您的路径中唯一的 gcc 是 Strawberry Perl 附带的 gcc,所以您使用的是 Cygwin 还是导致构建选择错误编译器的东西?