Mcrypt启用,Laravel仍然抱怨

时间:2015-02-17 03:20:31

标签: mcrypt laravel-5

我在OS X 10.9上使用MAMP。我安装了mcrypt,当我查看php -i时它已启用。我通过composer.phar通过php运行作曲家。获得:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - laravel/framework v5.0.5 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laravel/framework v5.0.4 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laravel/framework v5.0.3 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laravel/framework v5.0.2 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laravel/framework v5.0.1 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - laravel/framework v5.0.0 requires ext-mcrypt * -> the requested PHP extension mcrypt is missing from your system.
    - Installation request for laravel/framework 5.0.* -> satisfiable by laravel/framework[v5.0.0, v5.0.1, v5.0.2, v5.0.3, v5.0.4, v5.0.5].

1 个答案:

答案 0 :(得分:0)

对不起已经很晚了..但如果你还有问题,那肯定是因为你的php版本..

Composer使用系统版本,可能不会为该版本安装mcrypt模块。因此,请检查您的系统使用的版本,并尽可能选择"更正" PHP。

例如,更改PATH env变量; p

致以最诚挚的问候,