无法在Mac OS X Mavericks上封装jhbuild(10.9)

时间:2013-12-13 17:14:28

标签: shell terminal gtk osx-mavericks jhbuild

我正在尝试在Mac OS X Mavericks(10.9)笔记本电脑上安装GTK +。我按照https://wiki.gnome.org/action/show//Projects/GTK+/OSX/Building?action=show&redirect=GTK%252B%252FOSX%252FBuilding#Procedure的说明操作。我已经设法安装了jhbuild。但是,当我尝试在终端中执行命令“〜/ .local / bin / jhbuild shell”(没有引号)时,我收到以下错误消息:

  File "/Users/mansnilsson/Source/jhbuild/jhbuild/config.py", line 247, in load
    execfile(filename, config)
  File "/Users/mansnilsson/.jhbuildrc", line 555, in <module>
    execfile(_userrc)
  File "/Users/mansnilsson/.jhbuildrc-custom", line 113, in <module>
    setup_sdk(target=_target, sdk_version="native", architectures=[_default_arch])
  File "/Users/mansnilsson/.jhbuildrc", line 295, in setup_sdk
    module_extra_env["pkg-config"] = {'CFLAGS': os.environ['CFLAGS'] + ' --std=gcc89'}
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'CFLAGS'
jhbuild: could not load config file

我一直在谷歌搜索解决这个问题的方法。一位用户建议我必须编辑.jhbuildrc-custom文件,注释掉_target变量值的所有ifs和elifs,然后自己将值设置为“10.7”,但这没有帮助。为什么我无法运行命令?

1 个答案:

答案 0 :(得分:0)

已修复当前的gtk-osx版本。