红联Linux门户
Linux帮助

安装pcre报make[1]: *** [pcrecpp.lo] 错误 1的解决办法

发布时间:2016-04-20 10:12:45来源:linux网站作者:duanxz

在安装: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,安装完成。


本文永久更新地址:http://www.linuxdiyf.com/linux/19918.html