1

I downloaded latest php version from php.net i.e. PHP 5.4.8

I configured it with following command

./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

After this I run 'make' which start building / compiling PHP. After some time

It throws me error

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 

Spent lots of hours finding solutions. I can't come out of any. Does anyone know what this error exactly means? How to get rid of this error?

4

1 回答 1

1

在您的系统上安装 ICU 开发库:

yum install libicu-devel

您需要安装ICU开发库,我认为该错误意味着您没有安装或找不到 lib 文件。

于 2012-10-23T02:43:02.140 回答