Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cake PHP 3.0.*-dev error?

Tags:

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].
like image 828
tread Avatar asked Oct 06 '14 18:10

tread


3 Answers

Try this

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

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

If you don't solve verify the mcrypt library

updatedb
locate mcrypt.so
locate mcrypt.ini
like image 164
Luigi Semeraro Avatar answered Oct 15 '22 09:10

Luigi Semeraro


Just for the record, as I didn't find a solution anywhere for Arch Linux: If you happen to use composer from the extra repository (extra/php-composer), it's actually not enough to enable the mcrypt extension in /etc/php/php.ini because the global composer script uses its own ini-file (/usr/share/php-composer/php.ini).

To fix the mcrypt error, you can either:

  • Enable mcrypt extension globally and run composer using php /usr/bin/composer.
  • Add mcrypt extension to /usr/share/php-composer/php.ini and prevent pacman from overwriting your changes by adding NoUpgrade = usr/share/php-composer/php.ini to /etc/pacman/pacman.conf.
like image 19
maetthu Avatar answered Oct 15 '22 11:10

maetthu


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

laravel/framework v5.0.16 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from 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 that fixed the problem

like image 2
Rbijker.com Avatar answered Oct 15 '22 09:10

Rbijker.com