How to install intl with missing icu

if you are installing Yii Framework then you will need to install Intl Extension to meets Yii requirements.

Intl extension Warning Internationalizationsupport PHP Intl extension 1.0.2 or higher is required when you want to use advanced parameters formatting in Yii::t(), non-latin languages with Inflector::slug(), IDN-feature of EmailValidator orUrlValidator or the yii\i18n\Formatter class.

You can do this be installing it using pecl. It will fail if you don’t have necessary libraries.

Make sure that the following is installed on apt-get (debian) such machine

apt-get install libicu-dev

apt-get install icu-devtools

then

pecl install intl

Once this is installed make sure that the you add extension to php.ini

extensions=intl.so

and reload your apache

service apache restart

You can check where your php.ini by issuing the following command:

php -i | grep “php.ini”

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s