尝试在Mac上安装gtk的致命错误(Mavericks)

时间:2014-08-03 04:54:09

标签: haskell gtk install

我想我是一个受惩罚的贪食者。我(再次)尝试在我的Mac上安装gk,这样我就可以从Haskell进行实验了。我按照http://www.gtk.org/download/macos.php的说明操作,并且位于 jhbuild build meta-gtk-osx-bootstrap 阶段的中间

构建失败,出现Python错误(请参阅下面的日志)和一个弹出对话框(Python在使用libpython2.7.dylib插件时意外退出)

任何人都知道如何解决这个问题?

--------------
Making all in doc
Making all in gnome-doc-make
  XML2PO de/gnome-doc-make.xml
  XML2PO de/legal.xml
  XML2PO de/make-ref.xml
Fatal Python error: PyThreadState_Get: no current thread
Fatal Python error: PyThreadState_Get: no current thread
Fatal Python error: PyThreadState_Get: no current thread
/bin/sh: line 1: 85775 Abort trap: 6           PYTHONPATH="/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/inst/lib/python2.7:/Users/dhj/gtk/inst/lib/python2.7/site-packages/gtk-2.0:/Users/dhj/gtk/inst/lib/python2.7/site-packages" "/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po/xml2po/xml2po" -m docbook -e -t "${mo}" "${d}C/make-ref.xml" > make-ref.xml.tmp
make[2]: *** [de/make-ref.xml] Error 134
make[2]: *** Waiting for unfinished jobs....
/bin/sh: line 1: 85767 Abort trap: 6           PYTHONPATH="/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/inst/lib/python2.7:/Users/dhj/gtk/inst/lib/python2.7/site-packages/gtk-2.0:/Users/dhj/gtk/inst/lib/python2.7/site-packages" "/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po/xml2po/xml2po" -m docbook -e -t "${mo}" "${d}C/gnome-doc-make.xml" > gnome-doc-make.xml.tmp
make[2]: *** [de/gnome-doc-make.xml] Error 134
/bin/sh: line 1: 85773 Abort trap: 6           PYTHONPATH="/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po:/Users/dhj/gtk/inst/lib/python2.7:/Users/dhj/gtk/inst/lib/python2.7/site-packages/gtk-2.0:/Users/dhj/gtk/inst/lib/python2.7/site-packages" "/Users/dhj/gtk/source/gnome-doc-utils-0.20.10/doc/gnome-doc-make/../../xml2po/xml2po/xml2po" -m docbook -e -t "${mo}" "${d}C/legal.xml" > legal.xml.tmp
make[2]: *** [de/legal.xml] Error 134
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1

1 个答案:

答案 0 :(得分:1)

当我遇到这个问题时,这是因为我的机器上有一些奇怪的Python版本。简单的解决方法是在运行 jhbuild build meta-gtk-osx-bootstrap 之前运行 jhbuild build python ,以便环境具有预期的版本。是