Laravel 4 - Error while running `composer install`

后端 未结 3 574
离开以前
离开以前 2021-01-18 09:30

The problem:

I have installed Composer and followed the Quick start guide in the Laravel 4 documentation.

I get the following error when I run composer

3条回答
  •  无人共我
    2021-01-18 09:46

    It says:

    MCrypt PHP extension required

    So it looks like you're missing the Mcrypt extension, which is required by Laravel (actually, I think it's used only by the Authentication class for password handling, not for the rest of the components of the framework).

    I haven't got a Mac, but the command to install it should be something like this, using Homebrew

    brew tap josegonzalez/php
    brew install mcrypt php54-mcrypt
    

    These links might help you:

    • http://www.jorble.com/2013/04/install-php-mcrypt-in-macosx/
    • http://coolestguidesontheplanet.com/install-mcrypt-php-mac-osx-10-9-mavericks-development-server/

提交回复
热议问题