CakePHP 3.0 installation: intl extension missing from system
I faced the same problem today. You need to enable the intl PHP extension in your PHP configuration (.ini
).
Solution Xampp (Windows)
- Open
/xampp/php/php.ini
- Change
;extension=php_intl.dll
toextension=php_intl.dll
(remove the semicolon) - Copy all the
/xampp/php/ic*.dll
files to/xampp/apache/bin
- Restart apache in the Xampp control panel
Solution Linux (thanks to Annamalai Somasundaram)
-
Install the php5-intl extension
sudo apt-get install php5-intl
1.1. Alternatively use
sudo yum install php5-intl
if you are on CentOS or Fedora. Restart apache
sudo service apache2 restart
Solution Mac/OSX (homebrew) (thanks to deizel)
- Install the php5-intl extension
brew install php56-intl
- If you get
No available formula for php56-intl
follow these instructions. - Restart apache
sudo apachectl restart
Eventually you can run composer install
to check if it's working. It will give an error if it's not.
I faced the same issue in ubuntu 12.04
Installed: sudo apt-get install php5-intl
Restarted the Apache: sudo service apache2 restart
OS X Homebrew (May 2015):
The intl
extension has been removed from the main php5x
formulas, so you no longer compile with the --enable-intl
flag.
If you can't find the new package:
$ brew install php56-intl
Error: No available formula for php56-intl
Follow these instructions: https://github.com/Homebrew/homebrew-php/issues/1701
$ brew install php56-intl
==> Installing php56-intl from homebrew/homebrew-php