给Mac OS X 10.7.5安装GTK+

1.到官网直接下载安装脚本进行安装。
curl -o http://git.gnome.org/browse/gtk-osx/plain/gtk-osx-build-setup.sh

2.分别执行以下命令进行安装。
# sh gtk-osx-build-setup.sh
# jhbuild bootstrap
# jhbuild build meta-gtk-osx-bootstrap
# jhbuild build

3.如果在执行安装脚本时出现如下提示:
Checking out jhbuild (2.32.4from git...
From git://git.gnome.org/jhbuild
 * tag               2.32.4     -> FETCH_HEAD
Installing jhbuild...
Installing jhbuild configuration...
Installing gtk-osx moduleset files...
PATH does not contain /Users/youname/.local/bin, it is recommended that you add that.
此时,只需要把Home目录下的.local/bin目录添加进系统变量中PATH就行:
PATH=$HOME/.local/bin:$PATH
export PATH


 4.再如果提示autoconf版本太低,就直接中断再执行多一次jhbuild bootstrap即可:
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking whether /usr/bin/perl supports ithreads... yes
checking for tex... no
checking whether autoconf is installed... yes
checking whether autoconf works... yes
checking whether autoconf is recent enough... no
configure: error: Autoconf 2.62 or better is required.
*** Error during phase configure of automake-1.11: ########## Error running ./configure --prefix /Users/youname/gtk/inst --libdir '/Users/youname/gtk/inst/lib'    *** [8/12]

  [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"
posted @ 2012-11-14 14:31  轻风尔尔  阅读(750)  评论(0)    收藏  举报