2011-05-03 120 views
0

我想在Mac上安装10.6“雪豹”的PHP扩展国际使用以下命令:的Mac 10.6 - 无法安装PHP国际

sudo的PECL安装国际

...但得到出现以下错误:

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 

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

有谁知道如何安装intl扩展?

+0

不支持MAMP国际开箱? – 2011-05-03 16:27:07

+0

它似乎没有,这个链接指出,编译是必要的:http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/ – 2011-05-03 16:40:48

+0

嗯,我会发誓它做到了。我会研究它 – 2011-05-03 16:42:27

回答

1

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

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

这对我来说最终效果更好,因为我是Netbeans用户,这意味着我可以使用与liip分发捆绑在一起的xdebug。

我发现在Zend Server CE上安装xdebug有点繁琐,而且liip PHP安装不会安装额外的Apache和MySQL,它使用已经包含在操作系统中的东西。

1

您是否想过使用MAMP代替?它通常比Apple的捆绑软件包效果更好。

+0

这取决于,现在我看着相同的可能性,MAMP是否与intl扩展绑定在一起? – 2011-05-03 16:37:02

+0

它的确如此。但在启动时无法在后台自动启动。指向Zs。 – 2011-12-19 16:44:45

+0

MAMP没有捆绑intl。 – Ash 2012-04-27 18:42:47

0

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

0

尝试安装的autoconf

酿造安装autoconf的

问候