pcre-8.30编译的时候报libtool: compile: unrecognized option `-DHAVE_CONFIG_H'错

来源:互联网 发布:mysql unique错误 编辑:程序博客网 时间:2024/05/17 21:06

在编译pcre-8.30时报错:

libtool: compile: unrecognized option `-DHAVE_CONFIG_H'

libtool: compile: Try `libtool --help' for more information.
make[1]: *** [pcrecpp.lo] Error 1
make[1]: Leaving directory `/usr/src/pcre-8.30'

make: *** [all] Error 2


解决方法:

该错误是由于缺少 gcc-c++ 包。

如果是ubuntu系统,运行:

apt-get install gcc g++ autoconf 


如果是redhat系统,运行:

yum -y install gcc-c++

0 0
原创粉丝点击