Setting Up Mac OS X Leopard for Web Development (in just two steps)

December 31th, 2007

Some time ago I wrote how to set up Mac OS X Tiger for Web development. Since the entry has been a good starting point for myself, I decided to re-write it for Leopard.

One step forward, two steps back

The OS X cat has evolved hugely from developers point of view. Things like Apache 2, PHP 5, Python 2.5, easy_install, Subversion and Capistrano work out of the box. So we’re almost there, right? Wrong.

Unfortunately some aspects of the operating system are as bad as before, so in lack of working package management almost everything on top of the default setup means manual compling. And like that wouldn’t be bad enough, Leopards ingenious mixture of 64 bit and 32 bit binaries makes getting diferent programs and libraries work together unbelievably hard and complicated.

Installing MySQL from source is easy. Installing mod_python is a bit more complicated, but still possible. Trying to get Apache, mod_python and MySQL work together without segfaulting is nearly impossible — but still doable. And after that there is more PITA everywhere. Compiling things and trying to fix several dependencies by hand is just plain stupid. It’s so last decade that even a Mac-using developer shouldn’t need to do it.

And, luckily, you don’t have to!

Installing the perfect development environment

So after testing various diferent setups on my new iMac, here is the “there is no step three” formula for setting up a decent development environment for your Leopard:

  1. Buy VMWare Fusion or Parallels Desktop (They’re both great, just choose which one you like best.)
  2. Install Ubuntu on it.
  3. There is no step three!

Now you can mount your real Linux box disk to the crappy Finder and use it like it was the real thing. This way you make both Mark Pilgrim and yourself happy!

PS. Happy New Year!
PPS. Yes, I still love my Mac :) But I hate it when it tries to make me do stuff that I really don’t want to. Like installing and configuring stuff from source. Ewww.

Tagged with , , , , , ,

2 comments

1. Olav January 6th, 2008

I've been wanting a Linux laptop for some time now, especially after reading Pilgrim's thoughts on the matter.

I think I'll buy a cheap, small one running Ubuntu, in a case that can take lots of punishment, and cover it in geeky stickers. Now there's a machine you'll get attached to. :)

2. Ville Säävuori January 6th, 2008

For me laptop is primarily a work machine so Linux is out of the question; I've seen with my own eyes the myriad of the problems and tweaking involved with Linux on an laptop.

For desktop workstation I'd be more than willing to make the switch, but I've yet to find a text editor that I could seriously consider using. So far I haven't found anything that would be even remotely as useful (to me) as TextMate. On Linux, Gedit looks promising, but it's lightyears away from TextMate. I'm hoping that in a year or two I'll find something useful so I could make the switch.

(Not that I would still abandon my Macs, though. They are brilliant in many ways, but the server-side aspects of web development is just so much easier to do on Linux.)

Proudly Powered by Django
Unessa.net © 2000-2008 Ville Säävuori. All lefts reversed. | Contact information