Posted by Kevin D Smith @ 8:51 pm on September 16th 2009

Installing ReportLab on Snow Leopard

I recently install Apple’s latest version of OS X Snow Leopard. So far I have to say I’m not terribly impressed. About the only enhancement that makes any difference to me is the Exchange support, and most people don’t need that. Anyway, I’ve had a few problems in other areas with Snow Leopard and installing ReportLab is one of them.

I did some digging around on the internet and found a lot of partial solutions, but nothing that completely worked for me. What finally did the trick was the following.

cd /Developer/SDKs
sudo mv MacOSX10.4u.sdk MacOSX10.4u.sdk.bak
sudo ln -s MacOSX10.5.sdk MacOSX10.4u.sdk
sudo CC=/usr/bin/gcc-4.0 ARCHFLAGS='-arch x86' python setup.py install

Not pretty, but it gets the job done.