Compiling a Web Development Environment on Mac OS X

I've used many different methods to install the necessary software used in my web development pursuits including — but not limited to — Homebrew, MacPorts, Fink or simply enhancing the default packages that come with Mac OS X. However, there was always something missing which is why I prefer to compile my own development environment. This method gives me complete control. The other methods will surely be enough for many people but if you want to compile your own environment then continue reading.

This method also allows us to install any required version for a given project. Another benefit of installing custom built packages is to keep them segregated from the rest of the system which prevents future conflicts when performing a Software Update in Mac OS X. These instructions were made for Lion but should be fairly similar for previous versions of Mac OS X.

Start with the Getting Started section, then proceed with installing your desired packages. Some packages need to be installed in a certain order to satisfy dependencies. Each package lists its dependencies at the beginning of the instructions.

Good luck and happy coding!

Getting Started

Source Code Management

Databases

Web Servers

Languages

Libraries


Note: Remember these instructions are for creating a development server and therefore security is not considered. For a production system, please refer to each product's respective documentation on how to properly secure each service.