2010-01-23 102 views
0

试图在CentOS 5中部署基于Kohana的项目。安装了PHP 5.3.1,但仍然出现以下错误。PHP Kohana CentOS 5

Warning: preg_match() [function.preg-match]: Compilation failed: this version of PCRE is not compiled with PCRE_UTF8 support at offset 0 in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line 30 

Fatal error: PCRE has not been compiled with UTF-8 support. See PCRE Pattern Modifiers for more information. This application cannot be run without UTF-8 support. in /usr/local/apache2/htdocs/icarus/system/core/utf8.php on line 38 

因为过去2天尝试,我升级我的PHP从5.1到5.3,但仍然得到同样的问题和error.The按照我的是,PHP中的phpinfo的PCRE模块()说的是2004年九月的。下面是实际的线

PCRE Library Version 5.0 13-Sep-2004 

任何人都可以告诉我如何升级它或Wats解决方案的问题。

谢谢。

回答

0

我真的无法帮到你,但似乎PHP(或Apache?)正在使用它自己的PCRE库,并不一定是系统上安装的那个。

也许最后的帖子in this forum entry给你至少一个起点。

我不是一个drupie,但这个名单有 最翔实的信息,我发现 关于PCRE和UTF8错误。

pcretesting -C输出说我有UTF-8支持安装 6.6,但phpinfo()函数输出证实 别人说什么上面关于有 阿帕奇它自己的PCRE建..我的是5.3 东西..那它没有启用 utf8。我尝试从Apache源文件(我的: /usr/src/httpd-2.2.14/srclib/pcre)重新编译PCRE ,但是 永远无法使其工作。 (Makefile文件 了$ {} top_srcdir的/建设/ *,但 变量从未设置过,所以它 从不“make'd)反正...

我试过几件事情,但 以下最后工作...(Centos 分发... pcre二进制文件在 /usr/bin,pcre lib文件在 /usr/include ...试验和错误给了 我--with-pcre =/usr配置 下文)

    在我的Apache源代码文件夹
  • (雷:/usr/src/httpd-2.2.14/)我做了一个让 干净
  • 看着从我的最后的Apache编译作出的config.log文件:... $ 的./configure --enable-SSL --enable-DAV --enable-所以...

  • 运行的命令运行./configure --enable-SSL --enable-DAV --enable-所以--with-PCRE =/USR

  • 然后使& &使安装

没有更多PCRE错误在同一点 我有他们之前。