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