使用CakePHP文档,我尝试使用composer安装3.0-beta2,但得到以下错误:
cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system
但是,我确信intl已经安装(它显示在phpinfo上)。我使用的是PHP 5.4.33/Apache 2.4.10.1
发布于 2014-10-11 06:08:44
今天我也遇到了同样的问题。您需要在配置(.ini
)中启用PHP 扩展。
解决方案Xampp (Windows)
打开/xampp/php/php.ini
/xampp/apache/bin
;extension=php_intl.dll
to extension=php_intl.dll
/xampp/php/ic*.dll
Solution (感谢Annamalai Somasundaram)
sudo apt-get install php5-intl
1.1。如果您使用的是sudo yum install php5-intl
或Fedora.
sudo service apache2 restart
,也可以使用CentOS
Solution (homebrew) (感谢deizel)
按照apache sudo apachectl restart
安装php5-
No available formula for php56-intl
these -intl extension最终,您可以运行composer install
来检查它是否正常工作。如果不是,它会给出一个错误。
发布于 2015-03-24 14:58:04
我在ubuntu 12.04中遇到了同样的问题。
已安装:sudo apt-get install php5-intl
已重新启动Apache: sudo service apache2 restart
发布于 2015-05-04 16:23:01
使用MAMP时
1转到终端
vim ~/.bash_profile
i
export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH
将php5.6.2更改为您在MAMP中使用的php版本
按ESC,键入:wq
,然后按Enter
source ~/.bash_profile
哪个php
2安装Mac端口
https://www.macports.org/install.php
sudo port install php5-intl
或 sudo port install php53-intl
cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
{take a good look at the folder names that u use the right ones}
3添加扩展
现在,将扩展名添加到php.ini
文件中:
extension=intl.so
https://stackoverflow.com/questions/26285280
复制相似问题