Topic on Project:Support desk

How to install intl PECL extension?

5
Deletedaccount4567435 (talkcontribs)

http://pecl.php.net/package/intl I was totally unable understand how to install it.

I tried

$ cd extname
$ phpize
$ ./configure
$ make
# make install

but on ./configure

It result a warning:

configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate
 PHP parsers.
checking for gawk... gawk
checking whether to enable internationalization support... yes, shared
checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU in
stall prefix and make sure icu-config works.
[root@li421-31 intl-1.1.2]# make
make: *** No targets specified and no makefile found.  Stop.
[root@li421-31 intl-1.1.2]# pear install intl
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/
php_pdo_sqlite.so' - /usr/lib/php/modules/php_pdo_sqlite.so: cannot open shared
object file: No such file or directory in Unknown on line 0
No releases available for package "pear.php.net/intl" - package pecl/intl can be
 installed with "pecl install intl"
install failed
Bawolff (talkcontribs)

Sounds like you don't have icu installed.


Note, intl is not necessary for installing MediaWiki. The only part its needed in is for is if you change the category collation to uca-default (which is not the default one).

Also, newer php (5.3 and higher i think) generally comes with intl automatically installed.

Deletedaccount4567435 (talkcontribs)

Sorry what is [category collation to uca-default]?

Bawolff (talkcontribs)

Its a setting that changes the sort order of categories (See Manual:$wgCategoryCollation) Setting that to uca-default (which is not its default settings) It is the only feature of MediaWiki that requires the intl extension. (The unicode normalization code can use intl extension if installed, which is a little faster than the alternative, but by no means required)

Reply to "How to install intl PECL extension?"