错误:命令'/usr/bin/gcc-4.8'在使用linuxbrew安装spiff时失败,退出状态为1

时间:2015-02-25 11:45:47

标签: linux gcc homebrew cloudfoundry linuxbrew

我正在尝试在ubuntu 14.04.2桌面上安装spiff,首先我安装了linux brew:

$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/linuxbrew/go/install)"
$ export PATH=$PATH:/home/dzlab/.linuxbrew/bin

然后我尝试安装spiff:

$ brew install spiff
==> Installing spiff from xoebus/homebrew-cloudfoundry
==> Installing dependencies for spiff: mercurial, godep
==> Installing spiff dependency: mercurial
==> Downloading http://mercurial.selenic.com/release/mercurial-3.3.tar.gz
Already downloaded: /home/heavenize/.cache/Homebrew/mercurial-3.3.tar.gz
==> make PREFIX=/home/heavenize/.linuxbrew/Cellar/mercurial/3.3 install-bin
 #include <Python.h>
                    ^
compilation terminated.
error: command '/usr/bin/gcc-4.8' failed with exit status 1
make: *** [build] Error 1

READ THIS: https://github.com/Homebrew/linuxbrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting

我如何解决这个问题?还有另一种安装spiff的方法吗?

1 个答案:

答案 0 :(得分:0)

^下注意#include <Python.h>符号。它指出错误发生的位置。根据此输出,GCC找不到文件'Python.h'。