我已经能够在我的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.如果这有帮助的话,我可以分享更多的警告。
发布于 2018-05-03 13:38:33
看起来,这里使用的任何版本的wxWidgets都不包括来自此承诺的修复(大约4年前),这是使用macOS with或更高版本构建的。
完成后,您应该能够得到3.0.4版本,自己构建它,然后指向外星人。
https://stackoverflow.com/questions/50141150
复制相似问题