Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install PHP intl extension on MacOS [closed]

I am facing some issues in the installation of Cakephp. I hope any one had faced the same issue.

The error

- cakephp/cakephp 3.3.9 requires ext-intl * -> the requested PHP extension intl is missing from your system.

As per the error message, I removed ; from php.ini file but still getting the same error.

I have Mac 10.12 Sierra, Xampp 5.6.28-1 version and PHP 5.6.24 version.

like image 955
Nishant Sethi Avatar asked Feb 07 '17 08:02

Nishant Sethi


2 Answers

  1. Install the php5-intl extension brew install php56-intl
  2. If you get No available formula for php56-intl do brew tap homebrew/homebrew-php
  3. Restart Apache sudo apachectl restart
like image 84
Kilian Batzner Avatar answered Sep 25 '22 05:09

Kilian Batzner


intl is installed by default on php7.1 with brew.

If you already have php7.1, you might want to uninstall it first:

brew uninstall php71

Then install it with pear:

brew install php71 --with-pear

Then force the links:

brew link [email protected] --force
like image 35
guhur Avatar answered Sep 25 '22 05:09

guhur