Laravel requires the Mcrypt PHP extension

后端 未结 22 2363
生来不讨喜
生来不讨喜 2020-11-22 07:59

I am trying to use the migrate function in Laravel 4 on OSX. However, I am getting the following error:

Laravel requir         


        
22条回答
  •  日久生厌
    2020-11-22 08:34

    If you are using Z Shell, just do the following:

    1. Open terminal
    2. sudo nano ~/.zshrc
    3. Paste this; export PATH=/Applications/MAMP/bin/php/php5.6.10/bin:$PATH
    4. Save
    5. Run source ~/.zshrc
    6. Run which php - you should get the MAMP 5.6.10 path

    5.6.10 is the version of PHP you set in your MAMP.

提交回复
热议问题