我试图在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的方法吗?

最佳答案

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

关于linux - 错误:使用linuxbrew安装spiff时,命令'/usr/bin/gcc-4.8'失败,退出状态为1,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/28718216/

10-10 17:44