Installation 在Mac上安装wxPerl

Installation 在Mac上安装wxPerl,installation,wxwidgets,cpan,cpanm,wxperl,Installation,Wxwidgets,Cpan,Cpanm,Wxperl,我已经能够在我的Mac上安装wxWidgets并使用wxPython了,但是现在我正在尝试使用Perl,我需要下载wxPerl。我试图安装,但安装失败,我不确定出了什么问题或如何修复它。你能帮忙吗?这是终端输出。如果需要的话,我可以分享错误日志,但它相当长。同样值得注意的是,我在cpan和下载.tar文件并从中构建时仍然存在这个问题 dhcp86-242:214_Final_project cat$ cpanm Wx --> Working on Wx Fetching http://ww

我已经能够在我的Mac上安装wxWidgets并使用wxPython了,但是现在我正在尝试使用Perl,我需要下载wxPerl。我试图安装,但安装失败,我不确定出了什么问题或如何修复它。你能帮忙吗?这是终端输出。如果需要的话,我可以分享错误日志,但它相当长。同样值得注意的是,我在cpan和下载.tar文件并从中构建时仍然存在这个问题

dhcp86-242:214_Final_project cat$ cpanm Wx
--> Working on Wx
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Wx-0.9932.tar.gz ... OK
==> Found dependencies: Alien::wxWidgets
--> Working on Alien::wxWidgets
Fetching http://www.cpan.org/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-0.69.tar.gz ... OK
Configuring Alien-wxWidgets-0.69 ... OK
Building and testing Alien-wxWidgets-0.69 ... FAIL
! Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
! Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
! Bailing out the installation for Wx-0.9932.

“致命错误”

常见的警告

../include/wx/any.h:611:5: warning: expression with side effects will be evaluated despite being used as an operand to 'typeid' [-Wpotentially-evaluated-expression]
WX_DECLARE_ANY_VALUE_TYPE(wxAnyValueTypeImplVariantData)
^
日志的末尾

10 warnings and 1 error generated.
make: *** [coredll_core_bitmap.o] Error 1
system: make all: 512 at ./Build line 67.
-> FAIL Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
-> FAIL Bailing out the installation for Wx-0.9932.

如果有帮助的话,我可以分享更多的警告。

这里使用的wxWidgets的任何版本似乎都不包括macOS Sierra或更高版本所需的(近4年前)修复


AFAIR,您应该能够获得3.0.4版本,自己构建,然后指向Alien。

您使用哪一版本的OSX?很高兴看到日志,至少是有错误的部分…我正在运行MacOS Sierra版本10.12.6。我来加圆木。圆木的顶部被切断了。你能在顶部多加几行吗?另外,wx wxPerl的构建版本是什么?您可能需要自己构建它。日志有14874行。您想要哪一个?至于版本,看起来wxPerl支持wxWidgets 2.8.12和2.9.4。我不确定我下载了哪个版本的wxWidgets,但我认为wxPerl的安装程序应该考虑先决条件。但很明显,这把事情搞砸了。我确实尝试过手动构建,但我遇到了同样的问题。谢谢!我下载了wxWidgets 3.0.4,那么如何构建它并指向它呢?@CatherineD,构建很简单:
cd wxWidgets-3.0.4&&mkdir buildMac&&cd buildMac&&../configure--with cococoa--macosx version min=10.8&&make
。完成后,检查有关如何将工具指向结果库的Alien文档。如何将Alien指向库?我找不到这方面的任何章节。
10 warnings and 1 error generated.
make: *** [coredll_core_bitmap.o] Error 1
system: make all: 512 at ./Build line 67.
-> FAIL Installing Alien::wxWidgets failed. See /Users/cat/.cpanm/work/1525284354.35567/build.log for details. Retry with --force to force install it.
-> FAIL Installing the dependencies failed: Module 'Alien::wxWidgets' is not installed
-> FAIL Bailing out the installation for Wx-0.9932.