2011-10-20 47 views
0

我使用Zend Server CE 5.5(因此PHP 5.3.8)運行OS X 10.7 Lion。當我嘗試設置一個新的Symfony2項目時,配置檢查器警告我將intl擴展升級到ICU 4+。我如何升級intl擴展到OS X 10.7 Lion與PHP 5.3.8-ZS5.5.0

我按照我在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 

我能夠編譯intl.so用PHP 5.3.6,但是當我把文件在我php_extensions目錄,PHP不承認國際機場的。我想我最後一次嘗試用ICU 4.0.1編譯它,但我也嘗試了一些其他版本,如4.8.1或4.6.1。現在有沒有可能在10.7上用PHP 5.3.8編譯ICU?

回答

1

您需要多少Zend Server?如果沒有,那麼你可以嘗試http://php-osx.liip.ch/,它帶有ext/intl和Symfony2所需的其他東西

相關問題