我已经能够在我的 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.
“致命错误”
../src/osx/core/bitmap.cpp:39:10: fatal error: 'QuickTime/QuickTime.h' file not found
一个常见的警告
../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.
如果有帮助,我可以分享更多警告。