给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 "

转载于:https://www.cnblogs.com/henbo/archive/2012/11/14/2769878.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值