我使用Linux Mint 17'Quiana',并且我想安装Watchman以便稍后使用Ember.js。这是我的步骤:
$ git clone https://github.com/facebook/watchman.git
然后
$ cd watchman
$ ./autogen.sh
$ ./configure.sh
并且,当我运行make
以编译文件时,它返回以下错误:
pywatchman/bser.c:31:20: fatal error: Python.h: no such file or directory
#include <Python.h>
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
make[1]: *** [py-build] Error 1
make[1]: Leaving the directory `/home/alex/watchman'
make: *** [all] Error 2
我试着跑
$ sudo apt-get install python3-dev
但它似乎已经存在于我的系统中。我做错了什么?
通常它的python-dev
库丢失。您确定配置使用python 3而不是python 2吗?因为如果是这样,您应该安装python-dev
而不是python3-dev
。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句