I've updated my Mac OS X to Yosemite, but doing that I over write all my dev environment. So now, to run Laravel 4 on my local apache I need to install the Mcrypt extension, but everything that i've tried i fail. Even the steps that have worked on OS X Mavericks (10.9)
Anybody has the same issue? Thanks in advance.
Cheers
First Install libtool from homebrew, which is a dependency in 10.10 Yosemite
Then CD to your php directory
And into your php.d directory
Then finally do a quick ls to see which extensions you are using:
If you see duplicate entries containing "mcrypt" you will need to open one of them up, and comment out the line:
to
But only in one of them. For me it was mcrypt.ini. So..
added the line and done!
I had the same problem. But, I'm using MAMP for my local development. So, I just needed to symlink the php file over to MAMP's version and all is working.
If using homebrew, try reinstalling or relinking your php install.
I'm sure I can help you get back up and working, so just let me know if that doesn't help.
I just did these and it installed. MAMP etc. is not installed.
And weirdly, I had to reinstall to make it install properly.
However, this also re-installed PHP5.5 from source, but no matter, all is working fine on my end.
I just installed it right now on my Mavericks installation using homebrew and it worked surprisingly well. Can't say whether or not it will work so well on Yosemite but worth a shot..
Homebrew
Macports
Check PHP version
Update Macports
Download & install the appropriate version..
now dummy proof it..
Find where Macports put the file mcrypt.so and copy it to all instances of
/php/extensions/no-debug-...
folder. If you have that directory structure in multiple places, copy it to all of them. So every php/extensions/no-debug.. folder on your computer has a copy ofmcrypt.so
Determine where your php.ini file is and make sure it's the one your actually using because you may have this file in more than 1 place. Do this to all
php.ini
files you find..Within that file find and uncomment the following line. If it's commented out, uncomment it. If it's not in the file at all, add it. In my default php.ini file I found this on line 536:
Compile
Download mcrypt
Uncompress it
Configure, build, and install
Download Autoconf
Uncompress it
Configure, build, and install
Apache
Regardless which method you used to install it. You should always restart Apache when your done.
Restart Apache