【发布时间】:2018-10-12 22:44:33
【问题描述】:
我已经能够在我的 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.
如果有帮助,我可以分享更多警告。
【问题讨论】:
-
您使用哪个版本的 OSX?也很高兴看到日志,至少有错误的部分......
-
我正在运行 MacOS Sierra 版本 10.12.6。我会添加日志。
-
日志在顶部被切断。您可以在顶部添加更多行吗?还有什么版本的 wx wxPerl 是基于什么构建的?您可能需要自己构建它。
-
日志有 14874 行。你想要哪些?
-
版本方面,貌似wxPerl支持wxWidgets 2.8.12和2.9.4。我不确定我下载了哪个版本的 wxWidgets,但我认为 wxPerl 的安装程序应该注意先决条件。但显然它搞砸了。我确实尝试过手动构建,但我遇到了同样的问题。
标签: installation wxwidgets cpan cpanm wxperl