Posts

Showing posts from December, 2008

Installing/Recompiling PHP on Mac OS X Snow Leopard with GD, JSON + ZIP support

GUIDE TO COMPILING A USEFUL DEVELOPMENT VERSION PHP FOR LEOPARD - INCLUDING GD GRAPHICS AND ZIP SUPPORT After some substantial frustration, I have compiled (mainly for myself) a guide to improving on the default PHP installation that comes with Leopard. If you've landed here from Google you've no doubt already found that the standard Leopard PHP is basic, lacking some (IMHO) essential features such as GD for generating graphics and Zip support. You'll have also cursed that there is no readily available PHP package to update with, so re-compiling yourself is the only way. // NOTE: Dec 09 - This ONLY WORKS FOR LEOPARD, NOT SNOW LEOPARD. SEE MORE RECENT POST FOR HOW I SOLVED THIS ON MY NEW MACBOOK PRO This propect needn't be too daunting though - with this handy guide! # Note: All commands below are meant to be run in Terminal BEFORE YOU START # You'll need some (free) software: - TextWrangler - XCode OSX Developer Tools (to give you a working C compiler - alternativ