如何安装 kbuild?

如何安装 kbuild?

我如何运行/安装它:https://github.com/kevmoo/kbuild

我安装了依赖项并尝试执行 bin/kbuild Python 脚本,但它给了我这个错误:

Traceback (most recent call last):
  File "kbuild/bin/kbuild", line 12, in <module>
    BREW_PREFIX = subprocess.check_output(['brew', '--prefix']).strip()
  File "/usr/lib/python2.7/subprocess.py", line 537, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

我的猜测是这个工具是为 OSX 和 Homebrew 设计的,这就是它令人窒息的原因。我只是根据简约的安装说明不确定。

答案1

查看kbuild脚本,它似乎确实是 OS Xbrew特定的。

脚本摘录

...
BREW_PREFIX = subprocess.check_output(['brew', '--prefix']).strip()
compiler_search_path = path.join(BREW_PREFIX, 'Cellar/closure-compiler', '*', 'libexec/build/compiler.jar')
compilers = glob.glob(compiler_search_path)
...

homebrewgithub上的目录似乎也让人相信这一点:

如果您想通过 Homebrew 安装 kbuild:

酿造安装https://raw.github.com/kevmoo/homebrew-kevmoo/master/kbuild.rb

或者

酿造水龙头 酿造水龙头 kevmoo/kevmoo 酿造安装 kbuild

相关内容