Laravel requires the Mcrypt PHP extension

后端 未结 22 2352
生来不讨喜
生来不讨喜 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:20

    Expanding on @JetLaggy:

    After trying again and again to modify .bash_profile with the MAMP directory, I changed the file permissions for the MAMP php directory and was able to get 'which php' to show the proper directory. Trouble was that other functions didn't work, such as 'php -v'.

    So I updated MAMP. http://documentation.mamp.info/en/mamp/installation/updating-mamp

    This did the trick for my particular setup. I had to adjust my PATH to reflect the updated version of PHP, but once I did, everything worked!

提交回复
热议问题