简体   繁体   English

在Mac OS X El Capitan上安装Intl Extension

[英]Install intl extension on mac osx El Capitan

I've scanned the internet for some hours now to find an example how to install the intl extension for my local dev env. 我已经在互联网上扫描了几个小时,以找到一个示例如何为我的本地开发环境安装intl扩展。

There seems to be an issue to install pear/pecl I read about, is there any workaround to get this extension installed? 安装我读过的pear / pecl似乎存在问题,是否有任何解决方法来安装此扩展程序?

Many thanks! 非常感谢!

I didn't find any trouble installing pear on El Capitan. 我在El Capitan上安装pear没有任何麻烦。

Just use Homebrew, eg 只需使用Homebrew,例如

brew install php56 --with-pear

or extension it-self: 或自行扩展:

brew tap homebrew/science
brew install php56 pear

And pecl should be in the same folder as php (unless compiled with --without-pear disables ). 并且pecl应该与php位于同一文件夹中(除非使用--without-pear disables pecl编译)。 If not , link it manually: 如果不是 ,请手动链接:

$ ln -vs $(find /usr/local/Cellar/php56 -name pecl -print -quit) /usr/local/bin 
‘/usr/local/bin/pecl’ -> ‘/usr/local/Cellar/php56/5.6.0/bin/pecl’

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM