Symfony2中的系统(SonataAdminBundle)中缺少所需的PHP扩展名intl [英] The requested PHP extension intl is missing from your system (SonataAdminBundle) in Symfony2

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

问题描述

我尝试安装沙箱,但从composer收到以下错误:

I try to install the sandbox but I get the following error from composer:

使用软件包信息加载composer存储库安装 锁定文件中的依赖项您的要求无法解决 一整套可安装的软件包.

Loading composer repositories with package information Installing dependencies from lock file Your requirements could not be resolved to an installable set of packages.

问题1

- Installation request for sonata-project/intl-bundle 2.1.0 -> satisfiable by sonata-project/intl-bundle 2.1.0.`

- sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.`

问题2

- sonata-project/intl-bundle 2.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.`

- sonata-project/news-bundle 2.1.x-dev requires sonata-project/intl-bundle 2.1.* -> satisfiable by sonata-project/intl-bundle 2.1.0.
- Installation request for sonata-project/news-bundle 2.1.

推荐答案

在安装新的Magento 2.0时,我遇到了同样的问题,经过多次尝试和尝试,我设法按照以下步骤解决它:

I had the same problem while I was installing new Magento 2.0, after different hit and trials, I manged to solve it by following these steps:

我将所有 icu * 文件从php目录复制到了Appache目录,并且可以正常工作.

I copied all icu* files from php directory to Appache directory, and it worked.

Php目录:

WAMP \ bin \ php \ php5.5.12

WAMP\bin\php\php5.5.12

设备目录:

WAMP \ bin \ apache \ apache2.4.9

WAMP\bin\apache\apache2.4.9

确保取消注释php.ini文件中的以下行:

Make sure to un-comment following line in php.ini file:

extension = ext/php_intl.dll

extension=ext/php_intl.dll

这篇关于Symfony2中的系统(SonataAdminBundle)中缺少所需的PHP扩展名intl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆