pcre3编译报错:libtool: compile: unrecognized option `-DHAVE_CONFIG_H'

在编译pcre3-8.30时报错:

libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.
make[2]: *** [pcrecpp.lo] Error 1
make[2]: Leaving directory `/deb_pcre/pcre-8.30'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/deb_pcre/pcre-8.30'
make: *** [build-stamp] Error 2

解决方法:

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

如果是debian系统,运行:

apt-get install gcc g++ autoconf

如果是redhat系统,运行:

yum -y install gcc-c++



你可能感兴趣的:(Debian,gcc,yum)