can't find mcrypt => Call to undefined function Laravel\mcrypt_create_iv()

前端 未结 10 1840
刺人心
刺人心 2020-12-29 01:04

Trying to set up Laravel and keep getting hit with this error. I installed mcrypt through brew and it is located in /usr/local/Cellar. Any thoughts? .. It\'s not showing up

10条回答
  •  梦谈多话
    2020-12-29 01:41

    This is what finally worked for me:

    brew reinstall --with-homebrew-curl --with-httpd php56
    brew reinstall --build-from-source php56-mcrypt
    

    I also had to do sudo chmod 777 /usr/local/etc/php/5.6/conf.d because I got errors when the second brew reinstall tried to add the ext-mcrypt.ini to that directory.

提交回复
热议问题