简体   繁体   English

cake_php_intl扩展安装错误

[英]php_intl extension installation error in cakephp

I am using cakephp 3.0.8 on xampp 5.6.8-0 in Mac OS X Yosemite. 我在Mac OS X Yosemite的xampp 5.6.8-0上使用cakephp 3.0.8。 I have set the database string in the app file and also make the DB for cakephp. 我已经在应用程序文件中设置了数据库字符串,还使数据库成为cakephp。 I have also uncomment the extension=php_intl.dll in php.ini file. 我还取消了php.ini文件中的extension=php_intl.dll注释。

but if I try to use phpinfo, it is not showing php_intl . 但是,如果我尝试使用phpinfo,则不会显示php_intl And when I try to use cakephp on localhost it says 当我尝试在本地主机上使用cakephp时,它说

Fatal error: You must enable the intl extension to use CakePHP. 致命错误:必须启用intl扩展才能使用CakePHP。 in /Applications/XAMPP/xamppfiles/htdocs/cakephp/config/bootstrap.php on line 38 在第38行的/Applications/XAMPP/xamppfiles/htdocs/cakephp/config/bootstrap.php中

Could anyone tell me please whats the problem. 谁能告诉我是什么问题。

If you have your Linux VPS or Dev Box, the package is missing!! 如果您有Linux VPS或Dev Box,则该软件包不存在!!

just run this at command line 只需在命令行运行

sudo apt-get install php5-intl 须藤apt-get install php5-intl

Why php5? 为什么用php5? Well it's what I have installed, so if you're running greater than that in the future, just adjust php5 to phpx whatever you're running there! 好吧,这是我安装的,所以如果您将来运行的比以前大,只需将php5调整为phpx即可。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM