2010-01-23 60 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錯誤在同一點 我有他們之前。