sublime-laravelgenerator icon indicating copy to clipboard operation
sublime-laravelgenerator copied to clipboard

"Mcrypt PHP extension required." error on Vagrant VM.

Open mattarau opened this issue 11 years ago • 4 comments

I'm trying to start a new Laravel project on a Vagrant VM but this error keeps showing and I think that this is because the mcrypt is not installed on the host machine.

As I am on a Mac, I already have PHP installed on the default php_path "/usr/bin/php", but is it possible to use the one from the VM so I do not need to install Mcrypt on my host machine? Or will I have to install it anyways?

Thanks

mattarau avatar Feb 28 '14 00:02 mattarau

I had the same issue, and wonder if you already solved it? I also had a vagrant VM, and was trying to start a new Laravel project, but it says "Mcrypt PHP extension required." Do we need to put the path in the bashfile?

saliudev avatar Sep 26 '14 20:09 saliudev

@liusashmily Nope. Not yet.

mattarau avatar Sep 29 '14 15:09 mattarau

Okay, here is how we solved it, just in case some will have the same issue. I have homebrew installed, and here are the command lines I used for fixing it: brew tap homebrew/dupes brew tap homebrew/versions brew tap homebrew/homebrew-php xcode-select --install brew install php brew install php56-mcrypt

saliudev avatar Sep 29 '14 17:09 saliudev

Yeah. So I do have to install it on the host machine.

mattarau avatar Sep 30 '14 13:09 mattarau