Created
June 23, 2009 11:44
-
-
Save kusor/134492 to your computer and use it in GitHub Desktop.
libmcrypt + php (Snow) Leopard
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
cd src/ | |
wget http://puzzle.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz | |
tar xzvf libmcrypt-2.5.8.tar.gz | |
cd libmcrypt-2.5.8 | |
MACOSX_DEPLOYMENT_TARGET=10.6 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 | |
make -j6 | |
sudo make install | |
$ php --version | |
PHP 5.3.0 (cli) (built: Jul 19 2009 00:34:29) | |
cd .. | |
wget http://es2.php.net/distributions/php-5.3.0.tar.bz2 | |
tar xjvf php-5.3.0.tar.bz2 | |
cd php-5.3.0/ext/mcrypt/ | |
phpize | |
MACOSX_DEPLOYMENT_TARGET=10.6 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=/Developer/SDKs/MacOSX10.6.sdk/usr/bin/php-config | |
make -j6 | |
sudo make install | |
cd /private/etc/ | |
sudo nano -w php.ini |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment