How do I install PHP intl extension on CentOS?
If you have higher PHP version like 5.6, you have to enable both remi
and remi-php56
repos to install all the additional dependencies:
yum --enablerepo=remi,remi-php56 install php-intl
As you have php-commom from remi repositories, you need to get php-intl from remi also.
Add --enable-repo
option as follows:
yum --enablerepo=remi install php-intl
for php 7.0 using
#list all options
$ sudo yum list php7*intl
#install
$ sudo yum install php70-intl
I successfully installed INTL via pecl using following steps.
1) install icu & libs:
yum -y install icu libicu libicu-devel
2) php-devel package and phpize:
yum -y install php-devel phpize
3) and, of course gcc:
yum -y install gcc gcc-cpp gcc-c++
This is working for me.my php version is 5.6.12