Home > php教程 > php手册 > body text

PHP 5.5.15安装intl模块

WBOY
Release: 2016-06-06 20:13:06
Original
2260 people have browsed it

给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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!