差别
这里会显示出您选择的修订版和当前版本之间的差别。
两侧同时换到之前的修订记录 前一修订版 后一修订版 | 前一修订版 | ||
amh4.2:insatll_php_intl [2019/04/05 11:28] root [安装intl扩展] |
amh4.2:insatll_php_intl [2019/07/11 18:15] (当前版本) root [安装icu库] |
||
---|---|---|---|
行 6: | 行 6: | ||
icu官网 http://site.icu-project.org/download | icu官网 http://site.icu-project.org/download | ||
<code> | <code> | ||
+ | cd /root | ||
wget http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz | wget http://download.icu-project.org/files/icu4c/52.1/icu4c-52_1-src.tgz | ||
tar xf icu4c-52_1-src.tgz | tar xf icu4c-52_1-src.tgz | ||
行 17: | 行 18: | ||
官网 http://pecl.php.net/package/intl 中下载最新的 php_intl 源码 \\ | 官网 http://pecl.php.net/package/intl 中下载最新的 php_intl 源码 \\ | ||
<code> | <code> | ||
+ | cd /root | ||
wget http://pecl.php.net/get/intl-3.0.0.tgz | wget http://pecl.php.net/get/intl-3.0.0.tgz | ||
tar -xzf intl-3.0.0.tgz | tar -xzf intl-3.0.0.tgz | ||
cd intl-3.0.0 | cd intl-3.0.0 | ||
/usr/local/php/bin/phpize | /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 | make && make install | ||
</code> | </code> |
最后更改: in 2019/04/05 11:28