Created
July 21, 2014 23:32
-
-
Save mithriock/6e051ce80c36208ae89f to your computer and use it in GitHub Desktop.
Install Mcrypt extension (Mac OS X Mavericks 10.9)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Download libmcrypt-2.5.8 from sourceforge | |
2. Download the correct PHP 5.4.24 version. | |
3. Extract the libmcrypt and PHP source code. | |
4. cd ~/libmcrypt-2.5.8 folder | |
5. MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --disable-dependency-tracking | |
6. make -j6 | |
7. sudo make install | |
8. cd ~/php-5.4.24/ext/mcrypt | |
9. phpize | |
10. MACOSX_DEPLOYMENT_TARGET=10.9 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/usr/bin/php-config | |
11. make -j6 | |
12. sudo make install | |
13. Add extension=mcrypt.so to the end of /etc/php.ini | |
14. sudo apachectl restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment