I found out that when I wanted to use phpmyadmin, it asked for the libmcrypt module. So here is how I added mcrypt to PHP:
First download the libmcrypt sourcecode (I’ve used version 2.5.8). Don’t download the normal mcrypt package!
First you need to unpack the source code and decide if you need the 32 bits or 64 bits version (of your apache/php installation).
for 64 bits use:
CXXFLAGS="-arch x86_64" \
for 32 bits use:
For all versions use:
To compile and:
To install the library.
Next step is to recompile the php installation as described on these two pages:
Compiling PHP in 64 bits mode on Snow Leopard
The only change you need to make is to add:
To the configure statement and it will include this library for you.