gpt4 book ai didi

macos - 如何在 OSX 上安装 GTK+/PyGTK?

转载 作者:行者123 更新时间:2023-12-04 07:44:21 26 4
gpt4 key购买 nike

我正在尝试在 OSX 10.6(雪豹)上安装 PyGTK。我关注了这个话题 Where is PyGTK for Mac OS X? .

当我运行最后一个命令时:

~/.local/bin/jhbuild build meta-gtk-osx-python

我有以下错误:
*** Checking out gtk+ *** [10/18]
*** Configuring gtk+ *** [10/18]
autoreconf -fis && ./configure --prefix /Users/smu/gtk/inst --libdir '/Users/smu/gtk/inst/lib' --with-gdktarget=quartz --disable-static
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: linking file `m4/libtool.m4'
libtoolize: linking file `m4/ltoptions.m4'
libtoolize: linking file `m4/ltsugar.m4'
libtoolize: linking file `m4/ltversion.m4'
libtoolize: linking file `m4/lt~obsolete.m4'
configure.in:150: error: possibly undefined macro: dnl
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
autoreconf: /Users/smu/gtk/inst/bin/autoconf failed with exit status: 1
*** Error during phase configure of gtk+: ########## Error running autoreconf -fis && ./configure --prefix /Users/smu/gtk/inst --libdir '/Users/smu/gtk/inst/lib' --with-gdktarget=quartz --disable-static *** [10/18]

[1] Rerun phase configure
[2] Ignore error and continue to build
[3] Give up on module
[4] Start shell
[5] Reload configuration
[6] Go to phase "wipe directory and start over"
[7] Go to phase "clean"
[8] Go to phase "distclean"
choice:

我该怎么做才能解决这个错误?谢谢。

最佳答案

我找到了解决办法。我认为这是某些版本的库的问题。

只需使用 --ignore-system bootstrap 即可确保正确安装所有具有正确版本的库。

jhbuild bootstrap --ignore-system

关于macos - 如何在 OSX 上安装 GTK+/PyGTK?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5389013/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com