在编译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++
博主所有文章已转自私人博客 Joe 的个人博客,谢谢关注!