i686-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv
-O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/re2.cpp -o build/temp.linux-i686-2.7/src/re2.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
src/re2.cpp:201:29: fatal error: re2/stringpiece.h: No such file or directory
#include "re2/stringpiece.h"
^
compilation terminated.
error: command 'i686-linux-gnu-gcc' failed with exit status 1
我以前做过sudo apt-get install python-dev
答案 0 :(得分:3)
在ubuntu上,它是以下命令:
apt-get install libre2-dev
答案 1 :(得分:1)
我的愚蠢。我需要先从https://github.com/google/re2
安装Google re2按照那里的README进行制作和安装。这会将re2标头安装到Ubuntu上的/ usr / local / include / re2中。
然后安装re2 python包装器。
答案 2 :(得分:1)
对于fedora 23,只需在终端上启动此命令
dnf install re2 re2-devel