Cake PHP 3.0.* - dev错误?

sur*_*190 5 cakephp

[root@skadi:/var/www/mailinglist]$ composer.phar install
Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
    - cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
  Problem 2
    - cakephp/cakephp 3.0.x-dev requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - cakephp/debug_kit 3.0.x-dev requires cakephp/cakephp 3.0.*-dev -> satisfiable by cakephp/cakephp[3.0.x-dev].
    - Installation request for cakephp/debug_kit 3.0.*-dev -> satisfiable by cakephp/debug_kit[3.0.x-dev].
Run Code Online (Sandbox Code Playgroud)

小智 22

试试这个

sudo apt-get install mcrypt php5-mcrypt
sudo php5enmod mcrypt
Run Code Online (Sandbox Code Playgroud)

在Ubuntu 13.10及更高版本上,从php模块迁移配置存在问题 /etc/php5/conf.d to /etc/php5/mods-available

如果您不解决验证mcrypt

updatedb
locate mcrypt.so
locate mcrypt.ini
Run Code Online (Sandbox Code Playgroud)


mae*_*thu 19

仅仅是为了记录,因为我没有在Arch Linux的任何地方找到解决方案:如果您碰巧使用来自额外存储库(extra/php-composer)的composer,实际上还不足以在/ etc/php中启用mcrypt扩展/php.ini因为全局编写器脚本使用自己的ini文件(/usr/share/php-composer/php.ini).

要修复mcrypt错误,您可以:

  • 全局启用mcrypt扩展并使用运行composer php /usr/bin/composer.
  • 将mcrypt扩展添加到/usr/share/php-composer/php.ini,并通过添加NoUpgrade = usr/share/php-composer/php.ini/etc/pacman/pacman.conf来阻止pacman覆盖您的更改.