dongxiansi0158 2015-06-27 04:15
浏览 332
已采纳

在mac中安装PHP INTL没有正确

I have installed php56-intl using Homebrew like so: brew install php56-intl and when I do php -m | grep intl it gives me intl

But when I check in my phpinfo() file, doesn't show up intl.

Not sure what am I missing.

Update

All I want to install intl in my computer so that I could run my zend application. But whatever I do I don't get it done.

An error occurred An error occurred during execution; please try again later.

Additional information:

Zend\I18n\Exception\ExtensionNotLoadedException File: /Applications/XAMPP/xamppfiles/htdocs/skeleton/vendor/zendframework/zend-i18n/src/Filter/AbstractLocale.php:24

Message:

Zend\I18n\Filter component requires the intl PHP extension

  • 写回答

2条回答 默认 最新

  • dqt66847 2015-07-12 06:29
    关注

    The problem was, intl was installed in my mac but not in XAMPP.

    Alright, after long hassle here how I succeeded:

    Go to your terminal and

    cd /Applications/XAMPP/bin

    Then php -m | grep intl, if it returns you intl then it is installed. If not installed then should return empty.

    Now, sudo ./pecl install intl

    Will ask specify where ICU libraries and headers can be found, simply hit enter,

    And this will install intl, also will return this message You should add "extension=intl.so" to php.ini.

    So simply add this to your php.ini file and restart your apache: sudo apachectl restart or hard restart from XAMPP itself.

    Hope this helps someone else.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊
  • ¥15 安装svn网络有问题怎么办