我正在尝试在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的方法吗?
答案 0 :(得分:0)
在^
下注意#include <Python.h>
符号。它指出错误发生的位置。根据此输出,GCC找不到文件'Python.h'。