pcre-8.21编译安装出错[pcrecpp.lo] Error 1

系统:CentOS 6.3

错误信息:

source='pcrecpp.cc' object='pcrecpp.lo' libtool=yes \
    DEPDIR=.deps depmode=none /bin/sh ./depcomp \
    /bin/sh ./libtool --tag=CXX   --mode=compile  -DHAVE_CONFIG_H -I.      -c -o pcrecpp.lo pcrecpp.cc
libtool: compile: unrecognized option `-DHAVE_CONFIG_H'
libtool: compile: Try `libtool --help' for more information.
make[1]: *** [pcrecpp.lo] 错误 1
make[1]: Leaving directory `/soft/pcre-8.21'
make: *** [all] 错误 2

错误原因:缺少安装gcc-c++

解决方法:输入  yum -y install gcc-c++,重新configure,make && make install通过。

posted @ 2013-01-10 20:19  ゞ追忆o0ゞ  阅读(2174)  评论(0编辑  收藏  举报