Mac 10.6 -无法安装PHP intl


Mac 10.6 - unable to install PHP intl

我正在尝试安装PHP intl扩展在Mac 10.6 "雪豹"使用以下命令:

…但是得到以下错误:

running: phpize
grep: /usr/include/php/main/php.h: No such file or directory
grep: /usr/include/php/Zend/zend_modules.h: No such file or directory
grep: /usr/include/php/Zend/zend_extensions.h: No such file or directory
Configuring for:
PHP Api Version:
Zend Module Api No:
Zend Extension Api No:
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
ERROR: `phpize' failed

我正在使用捆绑Apache服务器与PHP 5.3.4。

有人知道如何安装intl扩展吗?

您考虑过使用MAMP吗?它通常比苹果的捆绑包要好。

我已经安装了Zend Server CE,一切正常。

我后来删除了Zend Server CE,并使用了这个代替:http://php-osx.liip.ch/是专门为Mac OSX 10.6和Symfony2构建的。

这对我来说效果更好,因为我是Netbeans用户,这意味着我可以使用与lilip发行版捆绑的xdebug。

我发现在Zend Server CE上安装xdebug有点麻烦,而且,liip PHP安装不安装额外的Apache和MySQL,它使用的是操作系统中已经包含的内容。

尝试安装autoconf

brew install autoconf

这可能是一个旧的帖子,但对我来说,我发现最简单的选择是使用liip服务(http://php-osx.liip.ch/)安装PHP。使用一个简单的命令,它安装了最新版本的PHP,配置它与现有的apache服务器安装在我的mac上所有的intl扩展。几个小时的挫折在几分钟内解决!