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:

1
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

As a weekend project I decided to set up a LAML, (Linux, Apache, MySQL, Lua) stack on my computer. I never worked with Lua before, but I figured it wouldn’t be too hard to get it working with my MAMP setup. Getting started, I spent some time reading any articles I could find on the web that talked about setting up or using using Lua for web development. I quickly ran into the Kepler Project which as their website points out:

is an open source platform that brings the power of Lua to web development

While this was my goal, I wanted to start from scratch since I haven’t had any experience with the language and didn’t want to learn it on a specific platform just yet. So, I went on to figure out how to install and configure Lua with MAMP. To accomplish this yourself, you will need: Xcode, MAMP, Lua, LuaRocks, MAMP source, and mod_fcgid.
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