首頁 >php教程 >php手册 >PHP 5.5.15安装intl模块

PHP 5.5.15安装intl模块

WBOY
WBOY原創
2016-06-06 20:13:062309瀏覽

给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。

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

从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

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn