I am trying to install mcrypt support in php 5.4.11 on Mountain Lion using Homebrew and I am having problems that I cannot solve.
I already manually installed PHP 5.4.11 on my Mac. mcrypt was previously installed using Homebrew.
When I load phpMyAdmin, it will tell me that mcrypt is not enabled.
So, when searching on google, I realized that somehow mcrypt is not loading, because there was no link to it when I uploaded my phpinfo file.
@DavidYell in answer to another question, Installing the mcrypt extension for PHP on OSX Mountain Lion suggested the following fix
brew install mcrypt php53-mcrypt
The following is the result of my command:
$ brew install mcrypt php54-mcrypt Error: mcrypt-2.5.8 already installed ==> Installing php54-mcrypt dependency: autoconf ==> Downloading http://ftpmirror.gnu.org/autoconf/autoconf-2.69.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/autoconf/2.69 ==> make install πΊ /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M, built in 29 seconds ==> Installing php54-mcrypt dependency: freetype ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/freetype-2.4.10.mountainlion.bottle.tar.gz
After restarting apache with sudo apachectl restart I rebooted phpinfo and still not got mcrypt.
Since php54-mcrypt was installed on the php home installation, I went and uninstalled it using brew uninstall php54-mcrypt and then reinstalled it using brew install php54-mcrypt --without-homebrew-php .
Restarted apache and loaded phpinfo, and still no mcrypt.
How to fix this problem. I would be happy if I only had built-in php, crypt and phpmyadmin, but I can not solve this problem with my current setting based on the advice found at http://mac.tutsplus.com/tutorials/server/ upgrading-the-native-php-installation-on-os-x-mountain-lion / .
Thanks.