安装PCRE时出错 [英] Error installing PCRE

查看:411
本文介绍了安装PCRE时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的Ubuntu 11.10服务器上安装PCRE。当我运行make命令时,我得到一个非常长的输出,总是以这个错误结束:

  libtool:link: (cd.libs&& rm -flibpcreposix.la&& ln -s../libpcreposix.lalibpcreposix.la)source ='pcrecpp.cc'object ='pcrecpp .lo'libtool = yes \ 
DEPDIR = .deps depmode = none / bin / bash ./depcomp \
/ bin / bash ./libtool --tag = CXX --mode = compile - DHAVE_CONFIG_H -I。 -c -o pcrecpp.lo pcrecpp.cc libtool:compile:无法识别的选项`-DHAVE_CONFIG_H'libtool:compile:尝试`libtool
--help'以获取更多信息。 make [1]:*** [pcrecpp.lo]错误1 make [1]:离开目录`/home/root/src/pcre/pcre-8.12'make:
*** [all]错误2

我曾经运行过configure。任何想法?

解决方案

您需要安装C ++编译器,您很可能需要g ++。



使用apt-get,运行'apt-get install g ++'或'apt-get install build-essential',因为build-essential包含g ++。


I'm trying to install PCRE on my Ubuntu 11.10 Server. When I run the "make" command, I get a really long output which always ends in this error:

libtool: link: ( cd ".libs" && rm -f "libpcreposix.la" && ln -s "../libpcreposix.la" "libpcreposix.la" ) source='pcrecpp.cc' object='pcrecpp.lo' libtool=yes \
        DEPDIR=.deps depmode=none /bin/bash ./depcomp \
        /bin/bash ./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] Error 1 make[1]: Leaving directory `/home/root/src/pcre/pcre-8.12' make:
*** [all] Error 2

I did run "configure". Any ideas?

解决方案

You need a C++ compiler installed, you'll most likely want g++.

With apt-get, run 'apt-get install g++', or 'apt-get install build-essential', since build-essential includes g++.

这篇关于安装PCRE时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆