更新mac下的pear和pecl并且安装php-intl拓展
##安装pear&pecl并更新
cd /usr/lib/php
sudo php install-pear-nozlib.phar
Edit:
/etc/php.ini and find the line: ;
include_path = ".:/php/includes"
修改为:
include_path = ".:/usr/lib/php/pear"
sudo pear channel-update pear.php.net
sudo pecl channel-update pecl.php.net
sudo pear upgrade-all
##安装依赖icu
wget http://download.icu-project.org/files/icu4c/55.1/icu4c-55_1-src.tgz
tar xvzf icu4c-55_1-src.tgz
cd icu4c-55_1-src
./configure
make
make install
##安装
sudo pecl install intl