在安装:pcre-8.30 时,报如下错误:
[root@localhost pcre-8.30]# make && make install
make all-am
make[1]: Entering directory `/data/soft/nginx/pcre-8.30'
CXX pcrecpp.lo
libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.
make[1]: *** [pcrecpp.lo] 错误 1
make[1]: Leaving directory `/data/soft/nginx/pcre-8.30'
make: *** [all] 错误 2
这个错误是缺少gcc安转包,运行如下命令:
[root@localhost pcre-8.30]# yum -y install gcc-c++
执行过程......
Complete!
[root@localhost pcre-8.30]# ./configure
......
[root@localhost pcre-8.30]# make && make install
ok安装完成