Cake PHP 3.0. * - dev error?

[ 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]. 
+5
source share
4 answers

try it

 sudo apt-get install mcrypt php5-mcrypt sudo php5enmod mcrypt 

in Ubuntu 13.10 and later there is a problem of migrating php modules configuration from /etc/php5/conf.d to /etc/php5/mods-available

If you do not decide to check the mcrypt library

 updatedb locate mcrypt.so locate mcrypt.ini 
+22
source

For the record only, since I did not find a solution for Arch Linux : if you use the composer from an additional repository (extra / php-composer), this is actually not enough to enable the mcrypt extension in /etc/php/php.ini, since the global composer script uses its own ini file (/usr/share/php-composer/php.ini).

To fix mcrypt error you can:

  • Enable the mcrypt extension globally and start the composer using php /usr/bin/composer .
  • Add the mcrypt extension to / usr / share / php -composer / php.ini and don't let pacman overwrite your changes by adding NoUpgrade = usr/share/php-composer/php.ini to /etc/pacman/pacman.conf.
+19
source

I had this problem when I tried to install laravel with composer on my Yosemite MAC. This is the error message I received from the terminal:

laravel / framework v5.0.16 requires ext-mcrypt * → the requested PHP extension mcrypt is missing on your system.

I followed these instructions to install mcrypt on my MAC: http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-10-yosemite-development-server/ And this fixed the problem

+2
source

The composer blocked my cakephp installation due to mcrypt dependency, even though mcrypt was installed and works in my php configuration.

Finally, I realized that Composer checks the cli mode for php, and I resolved the dependency by simply copying mcrypt.ini from / etc / php 5 / conf.d to / etc / php5 / cli / conf.d.

+2
source

Source: https://habr.com/ru/post/1204126/


All Articles