Вопрос

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?

Это было полезно?

Решение

Install the ICU development libraries on your system:

yum install libicu-devel

You need to have ICU development libraries installed and I think that error means you don't or it can't find the lib files.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top