我试图在我的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 @R_562_4045@ion. make[1]: *** [pcrecpp.lo] Error 1 make[1]: Leaving directory `/home/root/src/pcre/pcre-8.12' make: *** [all] Error 2
我没有运行“configuration”。 有任何想法吗?
无法执行'x86_64-conda_cos6-linux-gnu-gcc':没有这样的文件或目录(pysam安装)
gcc编译器报告类的大小=零
如何在clang中select一个特定的gcc-toolchain?
在make规则中使用时,如何让MAKEFILE在string中保留反斜杠序列?
用arm-none-eabi-gcc编译hello world程序C时出错
你需要安装一个C ++编译器,你很可能需要g ++。
使用apt-get,运行“apt-get install g ++”或“apt-get install build-essential”,因为build-essential包含g ++。
PCRE尝试构建c ++输出而不使用c ++编译器。 尝试
禁用C ++选项。
为什么不使用apt-cache search pcre | grep pcre找到PCRE apt-cache search pcre | grep pcre ,然后使用apt-get install安装PCRE? 我认为PCRE已经包含在存储库中了。
这是在我的电脑(Ubuntu 10.04)上述命令的结果:
$ apt-cache search pcre | grep pcre libpcre3-dbg - Perl 5 Compatible Regular Expression Library - debug symbols libpcre3-dev - Perl 5 Compatible Regular Expression Library - development files libpcrecpp0 - Perl 5 Compatible Regular Expression Library - C++ runtime files libpcre3 - Perl 5 Compatible Regular Expression Library - runtime files cl-ppcre - Portable Regular Express Library for Common Lisp gambas2-gb-pcre - The Gambas regexp component haskell-pcre-light-doc - library documentation for pcre-light libghc6-pcre-light-dev - Haskell library for Perl 5-compatible regular expressions libghc6-pcre-light-prof - pcre-light library with profiling enabled liblua5.1-rex-pcre-dev - PCRE development files for the Lua language version 5.1 liblua5.1-rex-pcre0 - Perl regular expressions library for the Lua language version 5.1 libpcre++-dev - C++ wrapper class for pcre (development) libpcre++0 - C++ wrapper class for pcre (runtime) libpcre-ocaml - OCaml bindings for PCRE (runtime) libpcre-ocaml-dev - OCaml bindings for PCRE (Perl Compatible Regular Expression) pcregrep - grep utility that uses perl 5 compatible regexes. pike7.6-pcre - PCRE module for Pike sqlite3-pcre - Perl-compatible regular expression support for sqlite postfix-pcre - PCRE map support for Postfix
我遇到了同样的问题,解决办法是做其他答案中的所有建议, 并安装PCRE的开发文件:
apt-get install build-essential
apt-get安装libtool
apt-get install libpcre3-dev
apt-get install libpcre3
要安装pcre包,你需要运行2个命令:
apt-get install libpcre3 libpcre3-dev
apt-get install build-essential libpcre3-dev libxslt1-dev libgd2-xpm-dev libgeoip-dev libssl-dev
我找到了答案,为什么,但不是治愈; (我知道这是一个老问题,但我认为我会无论如何贡献)。
我发现pcre已经安装在我的系统上,但显然libtool不是 。 当我试图sudo apt-get安装libtool我得到
Package libtool is not available,but is referred to by another package. This may mean that the package is missing,has been obsoleted,or is only available from another source
没有太多的想法,为什么发生这种情况,但正在寻找! 希望这回答你的问题。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。