linux - 安装 PCRE 时出错

标签 linux gcc ubuntu pcre libtool

我正在尝试在我的 Ubuntu 11.10 服务器上安装 PCRE。当我运行“make”命令时,我得到一个很长的输出,它总是以这个错误结尾:

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

我确实运行了“配置”。有什么想法吗?

最佳答案

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

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

关于linux - 安装 PCRE 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7866445/

相关文章:

linux - STM32F0-发现: no tty

linux - G++:链接器似乎没有正确链接

gcc - 为什么 C 允许缺少函数声明?

c++ - 使用 GCC switch case 范围,是否可以构建范围为 [A-Za-z] 的单个 case?

ubuntu - phpunit 测试中没有颜色显示

linux - 获取错误 : bad register name `%bpl'

linux - 如何在 Linux 中将一组软件作为一个软件包安装?

c - GCC 不工作但 G++ 可以

linux - Ubuntu 中的动态进程调度

ubuntu - 错误 -/usr/bin/ld : cannot find -lavutil in ubuntu 15. 04