PHP-intl error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix [Solved]

Question: Hi, I was trying to install Mediawiki on CentOS 6.6 machine. I have also installed all the dependant packages such as PHP, APC, Xcache, pecl extensions etc…During the install, Mediawiki shown a warning as “The intl PECL extension is not available to handle Unicode normalization, falling back to slow pure-PHP implementation“. This message suggests to install ‘php-intl‘, which I did it via yum and landed up on the below error message.

# pecl install intl
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
ERROR: `/var/tmp/intl/configure --with-icu-dir=DEFAULT' failed

I’m clueless on how to get rid of this error. Any help would be appreciated.

– Avinash

linux install php-intl extension

Solution:

You need to install ‘Components for Unicode‘ development package.

On RedHat/CentOS:

# yum install libicu-devel

On Debian/Ubuntu:

# apt-get install libicu-dev

Once ‘Components for Unicode’ is installed. Try installing php-intl again.

Do you want us to fix Linux errors? Feel to contact us via Contact Us page.

Updated on September 3, 2017

Was this article helpful?

Related Articles

Leave a Comment