Mac 10.6 - 无法安装 PHP intl
我正在尝试使用以下命令在 Mac 10.6“Snow Leopard”上安装 PHP intl 扩展:
sudo pecl install intl
...但出现以下错误:
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 扩展吗?
I'm trying to install the PHP intl extension on Mac 10.6 "Snow Leopard" using the following command:
sudo pecl install intl
...but getting the following errors:
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
I am using the bundles Apache server with PHP 5.3.4.
Does anyone know how to install the intl extension?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您是否考虑过使用 MAMP 来代替?它通常比苹果的捆绑包效果更好。
Have you thought about using MAMP instead? It generally works better than Apple's bundled packages.
我已经安装了 Zend Server CE,一切正常 100%。
我后来删除了 Zend Server CE,并使用了这个:
http://php-osx.liip.ch/ 专为 Mac OSX 10.6 构建,以及Symfony2 牢记于心。
这最终对我来说效果更好,因为我是 Netbeans 用户,这意味着我可以使用与 liip 发行版捆绑在一起的 xdebug。
我发现在 Zend Server CE 上安装 xdebug 有点麻烦,而且 liip PHP 安装不会安装额外的 Apache 和 MySQL,它使用操作系统中已经包含的内容。
I've installed Zend Server CE and everything works 100%.
I removed Zend Server CE later on, and used this instead:
http://php-osx.liip.ch/ which is specifically built for Mac OSX 10.6, and Symfony2 in mind.
This worked better for me in the end, as I'm a Netbeans user, this means I can use xdebug bundled with the liip distribution.
I found it a bit cumbersome getting xdebug installed on Zend Server CE, and also, the liip PHP installation doesn't install an additional Apache and MySQL, it uses what is already included with the OS.
尝试安装 autoconfbrew
install autoconf
问候
Try installing autoconf
brew install autoconf
Regards
这可能是一篇旧文章,但对我来说,我发现最简单的选择是使用 liip 服务安装 PHP (http ://php-osx.liip.ch/)。使用一个简单的命令,它安装了最新版本的 PHP,并使用我的 mac 上安装的现有 apache 服务器以及 intl 扩展对其进行了配置。几个小时的挫败感在几分钟内得到解决!
This might be an old post, but for me, I found the easiest option was to install PHP using the liip service (http://php-osx.liip.ch/). Using one simple command, it installed the latest version of PHP, configured it with the existing apache server installed on my mac all along with the intl extension. A number of hours frustration solved in a couple of minutes!