如何使用PHP 5.3.8-ZS5.5.0在OS X 10.7 Lion上将intl扩展升级到ICU 4+

时间:2011-10-20 09:19:03

标签: php icu zend-server-ce intl

我使用Zend Server CE 5.5(因此PHP 5.3.8)运行OS X 10.7 Lion。当我尝试设置一个新的Symfony2项目时,配置检查器警告我将intl扩展升级到ICU 4 +。

我按照another StackOverflow Post中的说明进行操作,主要是关于upgrading intl on Lion的博文。但是当我尝试使用PHP 5.3.8编译扩展时。我收到以下错误:

$ make
/bin/sh /Users/Florian/Downloads/php-5.3.8/ext/intl/libtool --mode=compile cc -I/usr/local/include -I. -I/Users/Florian/Downloads/php-5.3.8/ext/intl -DPHP_ATOM_INC -I/Users/Florian/Downloads/php-5.3.8/ext/intl/include -I/Users/Florian/Downloads/php-5.3.8/ext/intl/main -I/Users/Florian/Downloads/php-5.3.8/ext/intl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include  -DHAVE_CONFIG_H  -g -O2   -c /Users/Florian/Downloads/php-5.3.8/ext/intl/php_intl.c -o php_intl.lo 
mkdir .libs
cc -I/usr/local/include -I. -I/Users/Florian/Downloads/php-5.3.8/ext/intl -DPHP_ATOM_INC -I/Users/Florian/Downloads/php-5.3.8/ext/intl/include -I/Users/Florian/Downloads/php-5.3.8/ext/intl/main -I/Users/Florian/Downloads/php-5.3.8/ext/intl -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c /Users/Florian/Downloads/php-5.3.8/ext/intl/php_intl.c  -fno-common -DPIC -o .libs/php_intl.o
/Users/Florian/Downloads/php-5.3.8/ext/intl/php_intl.c:490: error: ‘PHP_FE_END’ undeclared here (not in a function)
make: *** [php_intl.lo] Error 1

我能够使用PHP 5.3.6编译intl.so但是当我将该文件放在我的php_extensions目录中时,PHP根本不识别intl。我想在我上一次尝试中我尝试使用ICU 4.0.1编译它,但我也尝试了其他一些版本,如4.8.1或4.6.1。目前是否有可能在10.7上使用PHP 5.3.8编译ICU?

1 个答案:

答案 0 :(得分:1)

你需要多少Zend Server?如果没有,那么你可以尝试使用ext / intl附带的http://php-osx.liip.ch/以及Symfony2所需的一切