2012-10-20 40 views
1

我下載了最新的PHP版本,從php.net即PHP 5.4.8錯誤與國際化擴展當編譯PHP 5.4.8

我用下面的命令

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql --enable-intl --with-libdir=lib64 --with-pear --with-mcrypt --with-mhash --enable-mbstring --with-iconv --with-icu-dir=/usr --with-gettext --with-curl --with-mysqli --with-freetype --with-gd --with-curlwrappers --with-jpeg-dir=/usr --with-png-dir=/usr 

這個我執行「make後其配置'開始編譯/編譯PHP。過了一段時間

它將引發我錯誤

ext/intl/.libs/php_intl.o: In function `zm_startup_intl': 
php-5.4.8/ext/intl/php_intl.c:651: undefined reference to `spoofchecker_register_Spoofchecker_class' 
php-5.4.8/ext/intl/php_intl.c:654: undefined reference to `spoofchecker_register_constants' 
collect2: ld returned 1 exit status 
make: *** [sapi/cli/php] Error 1 

花了很多時間尋找解決方案。我不能出來。 有誰知道這個錯誤究竟意味着什麼?如何擺脫這個錯誤?

+0

嘗試檢查您的ICU版本是否兼容。 – NikiC

+0

我正在使用CentOS 5.8,我不知道如何檢查它的版本。你能告訴我如何? –

+1

SO FAQ允許提出這些問題「但如果你的問題一般涵蓋......程序員常用的軟件工具......那麼你就是在正確的地方問你的問題!」。這包括有關能夠構建開發工具來完成工作的問題。 – Kev

回答

1

您的系統上安裝ICU開發庫:

yum install libicu-devel 

你需要有ICU開發庫installed,我認爲錯誤意味着你沒有或者無法找到LIB文件。