Plugging mcrypt into PHP, on Leopard 10.5.6
mcrypt on Fedora Core easy - on Leopard with PHP 5.2.6 not so much. First, you are going to need a few things… 1) libmcrypt-2.5.8, which you can pick up here ; 2) PHP 5.2.6 source, which you grab here ; and 3) Xcode 3 tools (dig through your sock drawer to find your Leopard disk). Next, create a directory at root called ‘SourceCache’ and dump the files from #1 and #2 in there and unwrap. Move to the libmcrypt-2.5.8 directory, and punch in this… MACOSX_DEPLOYMENT_TARGET=10.5 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' LDFLAGS='-O3 -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64 -arch ppc7400 -arch ppc64' ./configure --disable-dependency-tracking and then… make -j6 and finally… sudo make install libmcrypt is ready - now for the PHP extension… Move back to /SourceCache, then down to php-5.2.6/ext/mcrypt - type… /usr/bin/phpize (phpize should be in /usr/bin - if not g...