在山狮上安装php intl扩展 [英] install php intl extension on mountain lion
本文介绍了在山狮上安装php intl扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试安装rubedo cms,并在php应用程序中出现错误:
I'm trying to install rubedo cms, and get an error in the php application:
Zend\I18n\Validator component requires the intl PHP extension
这些是我安装扩展程序所采取的步骤
These are the steps I've taken to install the extension
sudo port install php5-intl
sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo pico /private/etc/php.ini
添加
extension=intl.so
然后
sudo apachectl restart
推荐答案
我发现了问题.
我需要正确的intl版本.我正在运行php 5.3,我认为这是我运行时的原因:
I needed the right version of intl. I'm running php 5.3, which I think is the reason that when I ran:
sudo port install php53-intl
有效.
重要的是,父文件夹在副本的src和目标中也被命名为相同的名称.
Significantly, the parent folder also was named the same in the src and destination in the copy.
所以我的最终过程是:
sudo port install php53-intl
sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20090626/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/
sudo pico /private/etc/php.ini
添加
extension=intl.so
然后
sudo apachectl restart
这篇关于在山狮上安装php intl扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文