Skip to content

Instantly share code, notes, and snippets.

@kusor
Created June 23, 2009 11:44
Show Gist options
  • Save kusor/134492 to your computer and use it in GitHub Desktop.
Save kusor/134492 to your computer and use it in GitHub Desktop.
libmcrypt + php (Snow) Leopard
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