【发布时间】:2011-10-20 09:19:02
【问题描述】:
我正在运行 OS X 10.7 Lion 和 Zend Server CE 5.5(因此是 PHP 5.3.8)。当我尝试设置一个新的 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?
【问题讨论】:
标签: php icu zend-server-ce intl