我通过以下命令为GTK
安装了Mac OS
:
port install gtk2 +quartz +no_x11
但收到错误:Error: org.macports.archivefetch for port gtk2 returned: cairo must be installed with +quartz.
所以我安装了cairo
和pango
+quartz
标志:
port install cairo +no_x11 +quartz
port install pango +no_x11 +quartz
重新安装GTK
后,它已成功安装。
但是当我尝试安装ige-mac-integration
时出错:
port install ige-mac-integration
---> Fetching archive for py27-pygtk
Error: org.macports.archivefetch for port py27-pygtk returned: gtk2 must be installed with +x11.
但我需要GTK
而不需要x11
我该怎么办?
谢谢,
答案 0 :(得分:1)
不推荐使用ige-mac-integration
,
改为使用gtk-osx-application
:
port install gtk2 +quartz +no_x11
后
port install gtk-osx-application -python27