本文介绍了CakePHP 3.0安装:系统中缺少intl扩展名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

=http://stackoverflow.com/a/30387708/2491049> Mac / OSX (homebrew)(感谢deizel)


  1. 安装php5-intl扩展 brew install php56-intl

  2. 如果您收到没有可用的公式php56-intl 按照这些



  3. 重新启动apache sudo apachectl restart $ b

    最后,您可以运行 composer install 以检查其是否正常工作。


    Using the CakePHP docs, I am trying to install 3.0-beta2 using composer but I got this error:

    However, I know for sure that intl is installed (it shows on phpinfo). I'm using PHP 5.4.33/Apache 2.4.10.1

    Thanks in advance for any ideas you can provide.

    解决方案

    I faced the same problem today.

    Solution Xampp (Windows)

    1. Open /xampp/php/php.ini
    2. Change ;extension=php_intl.dll to extension=php_intl.dll (remove the semicolon)
    3. Copy all the /xamp/php/ic*.dll files to /xampp/apache/bin
    4. Restart apache in the Xampp control panel

    Solution Linux (thanks to Annamalai Somasundaram)

    1. 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.

    2. Restart apache sudo service apache2 restart

    Solution Mac/OSX (homebrew) (thanks to deizel)

    1. Install the php5-intl extension brew install php56-intl
    2. If you get No available formula for php56-intl follow these instructions.
    3. Restart apache sudo apachectl restart

    Eventually you can run composer install to check if it's working.

    这篇关于CakePHP 3.0安装:系统中缺少intl扩展名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-16 08:52
查看更多