PCRE 库版本太旧 [英] PCRE libraries version is too old

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

问题描述

Bug Genie 3 需要 PCRE 库 8.0 或更高版本.你有7.8 版 2008-09-05.将您的系统更新到最新版本您通常的来源.

The Bug Genie 3 requires PCRE librairies 8.0 or later. You have version 7.8 2008-09-05. Update your system to the latest release from your usual sources.

在我查看问题并尝试使用以下步骤更新我的 pcre 库之后:

after i look at the problem and try to update my pcre libraries with the following step:

wget the latest source of pcre from sourceforge 8.31

# tar -xzf pcre-8.31.tar.gz
# cd pcre-8.31
# ./configure --enable-utf8  --enable-unicode-properties
# make && make install

当我做 pcretest -C我有这个

when i do pcretest -C i got this

[root@server1 /]# pcretest -C
PCRE version 8.31 2012-07-06
Compiled with
  8-bit support only
  UTF-8 support
  Unicode properties support
  No just-in-time compiler support
  Newline sequence is LF
  \R matches all Unicode newlines
  Internal link size = 2
  POSIX malloc threshold = 10
  Default match limit = 10000000
  Default recursion depth limit = 10000000
  Match recursion uses stack

当我找到时,有很多

[root@server1 /]# locate libpcre
/lib64/libpcre.so.0
/lib64/libpcre.so.0.0.1
/usr/lib64/libpcrecpp.so.0
/usr/lib64/libpcrecpp.so.0.0.0
/usr/lib64/libpcreposix.so.0
/usr/lib64/libpcreposix.so.0.0.0
/usr/local/lib/libpcre.a
/usr/local/lib/libpcre.la
/usr/local/lib/libpcre.so
/usr/local/lib/libpcre.so.1
/usr/local/lib/libpcre.so.1.0.1
/usr/local/lib/libpcrecpp.a
/usr/local/lib/libpcrecpp.la
/usr/local/lib/libpcrecpp.so
/usr/local/lib/libpcrecpp.so.0
/usr/local/lib/libpcrecpp.so.0.0.0
/usr/local/lib/libpcreposix.a
/usr/local/lib/libpcreposix.la
/usr/local/lib/libpcreposix.so
/usr/local/lib/libpcreposix.so.0
/usr/local/lib/libpcreposix.so.0.0.1
/usr/local/lib/pkgconfig/libpcre.pc
/usr/local/lib/pkgconfig/libpcrecpp.pc
/usr/local/lib/pkgconfig/libpcreposix.pc

最后,我高兴地回到了我的 php 信息.它仍然显示我安装了 7.8 版.

finally, i backed to my php info happily.. it still show me version 7.8 installed.

我可以知道我应该怎么做才能解决这个问题,而开源应用程序 buggenie 需要这个.谢谢回复.

May i know what should i do to solve this while the open source application buggenie need this . Thx for reply.

推荐答案

我认为您必须使用 --with-pcre-regex=DIR 选项针对最新的 PCRE 库手动构建 PHP.为此,您需要获取 PHP 源代码和 PCRE 源代码,以及您可能需要的所有其他库的源代码.

I think you have to manually build PHP against newest PCRE library using --with-pcre-regex=DIR option. To do so, you need to obtain the PHP sources and PCRE sources, as well as sources of all other libraries you might need.

此页面 http://php.net/manual/en/pcre.installation.php 总结了与 PHP 捆绑在一起的 PCRE 版本.

This page http://php.net/manual/en/pcre.installation.php summarizes versions of PCRE bundled with PHP.

更简单的选择是使用您操作系统的包管理器更新 PHP(可能通过启用不稳定的存储库),但这取决于您的操作系统.

The much easier option would be updating PHP using package manager of your OS (perhaps by enabling unstable repositories), but this depends on your OS.

这篇关于PCRE 库版本太旧的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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