How do I install PHP intl extension on CentOS? How do I install PHP intl extension on CentOS? php php

How do I install PHP intl extension on CentOS?


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


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


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