Some PHP software, such as MediaWiki, prefer for servers to have the “intl” PECL package to be installed. On Ubuntu you can insall it as a precompiled package from the official repositories:
1 |
sudo apt-get install php5-intl --no-install-recommends |
If you start from a clean Ubuntu install and you want to build the package yourself, you might not have all of the dependencies installed. Run this command to make sure you have all of the prerequisites installed:
1 |
sudo apt-get install gcc linux-headers-$(uname -r) libicu-dev php5 php5-dev php-pear build-essential --no-install-recommends |
To build the package itself:
1 |
sudo pecl install intl |
You might also have to restart your webserver if you manually build the package. For Apache, run:
1 |
sudo service apache2 restart |