Centos安装intl扩展

#!/bin/bash
#####     install  icu   ###############
tar xf /root/icu4c-55_1-src.tgz
cd /root/icu/source
./configure -prefix=/usr/local/icu
make && make install
 
#####     install  intl   ###############
cd /root/php-5.5.21/ext/intl  # PHP源代码路径
 
/opt/php/bin/phpize
./configure -enable-intl --with-icu-dir=/usr/local/icu/ --with-php-config=/opt/php/bin/php-config
make && make install

icu下载地址:

http://site.icu-project.org/download

PHP下载地址:

http://php.net/releases/

by 雪洁 2015-12-24 07:05:26 1963 views
我来说几句

相关文章