3

我尝试在装有 OSX 10.11 的 iMac 上安装 GTK+ $ sh gtk-osx-build-setup.sh ,但没有出现任何错误,但显示“yelp-tools 不可用”。当我这样做时, $ jhbuild bootstrap 我收到以下错误/输出:

W: bash has a dependency on unknown "readline" module
*** Checking out xz *** [1/22]
curl --continue-at - -L http://tukaani.org/xz/xz-5.2.1.tar.bz2 -o /Users/Noemi/gtk/source/pkgs/xz-5.2.1.tar.bz2
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100 1158k  100 1158k    0     0  2424k      0 --:--:-- --:--:-- --:--:-- 2423k
bunzip2 -dc "/Users/Noemi/gtk/source/pkgs/xz-5.2.1.tar.bz2" | tar xf -
*** Configuring xz *** [1/22]
./configure --prefix /Users/Noemi/gtk/inst --libdir '/Users/Noemi/gtk/inst/lib'   
./configure: line 154: /Users/Noemi/gtk/inst/bin/bash: No such file or directory
./configure: line 154: exec: /Users/Noemi/gtk/inst/bin/bash: cannot    execute: No such file or directory
*** Error during phase configure of xz: ########## Error running ./configure --prefix /Users/Noemi/gtk/inst --libdir '/Users/Noemi/gtk/inst/lib'    *** [1/22]

  [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:
4

1 回答 1

2

来自 .jhbuildrc:

# El Capitan needs bash to work around SIP. If you're using a
# common bootstrap directory (e.g. $HOME/.local) then override
# CONFIG_SHELL in .jhbuildrc-custom after calling setup_sdk().

所以我补充说:

os.environ['CONFIG_SHELL'] = '/bin/bash'

进入我的 .jhbuildrc-custom,就在 setup_sdk 行之后,它似乎正在工作

于 2016-01-20T07:51:38.147 回答