0

我正在尝试spiff在 ubuntu 14.04.2 桌面上安装,首先我安装 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 的方法吗?

4

1 回答 1

0

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

于 2015-02-26T20:29:40.683 回答