Need help installing PHP extensions for OS X 10.6 (Snow Leopard) using MAMP and the included PECL binary? Well, you have come to the right place. If you have tried this on its own, you will notice that none of the extensions PECL builds will work with MAMP. This is because MAMP is compiled as a 32-bit binary whereas PECL tries to build 64-bit PHP extensions.

[Update Feb. 1, 2011]

A much easier way to install PECL packages:

CFLAGS="-arch i386" ./pecl install

To get PECL working properly, make sure you have Xcode installed on you machine. Next, you will need to get a copy of MAMP’s source and prepare it using 32-bit compile flags. You can download the MAMP source from the MAMP. Running the .dmg should extract the source. After extracting the source run the following:
Continue reading

  • page 1 of 1
Author's picture

Andrew Vayanis

I am a Software Engineer, Technologist, Gamer, but most importantly, I am a student of life.

Engineering Lead

California, USA