美文网首页
pywatchman/bser.c:31:20: fatal e

pywatchman/bser.c:31:20: fatal e

作者: 大大大寒 | 来源:发表于2018-05-02 10:20 被阅读48次

在watchman 执行命令sudo make 报错

building 'pywatchman.bser' extension
creating build
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/pywatchman
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c pywatchman/bser.c -o build/temp.linux-x86_64-2.7/pywatchman/bser.o
pywatchman/bser.c:31:20: fatal error: Python.h: 没有那个文件或目录
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Makefile:3355: recipe for target 'py-build' failed
make[1]: *** [py-build] Error 1
make[1]: Leaving directory '/home/user/git/watchman'
Makefile:825: recipe for target 'all' failed
make: *** [all] Error 2

解决办法
执行:sudo apt-get install python-dev

https://github.com/facebook/watchman/issues/241

相关文章

网友评论

      本文标题:pywatchman/bser.c:31:20: fatal e

      本文链接:https://www.haomeiwen.com/subject/kxvqrftx.html