给PHP环境安装intl模块需要安装?icu4c。 intl模块安装 安装icu4c在本地环境。 wget http://download.icu-project.org/files/icu4c/53.1/icu4c-53_1-src.tgz tar -xzf icu4c-53_1-src.tgz cd icu/source ./configure prefix=/usr/local/icu make make install
给PHP环境安装intl模块需要安装?icu4c。
安装icu4c在本地环境。
wget http://download.icu-project.org/files/icu4c/53.1/icu4c-53_1-src.tgz
tar -xzf icu4c-53_1-src.tgz
cd icu/source
./configure –prefix=/usr/local/icu
make
make install
从Pecl下载intl模块
wget http://pecl.php.net/get/intl-3.0.0.tgz
tar -xzf intl-3.0.0.tgz
cd intl-3.0.0/usr/local/php/bin/phpize
./configure –enable-intl –with-icu-dir=/usr/local/icu/ –with-php-config=/usr/local/php/bin/php-config
make
make install
配置php.ini启用intl模块
sed -i ‘s#; extension_dir = ”./”#extension_dir = “/usr/local/php/lib/php/extensions/no-debug-non-zts-20121212/”#’ /etc/php.ini
echo “;extension=intl.so” >> /etc/php.ini
(...)
Read the rest of PHP 5.5.15安装intl模块 (6 words)
© Li Xi for LixiPHP, 2014. |
Permalink |
No comment |
Add to
del.icio.us
Post tags: icu4c, intl, PHP 5.5.15, php.ini
Feed enhanced by Better Feed from Ozh