Installing PIL on OS X Snow Leopard w/Xcode4 (no PPC support) Installing PIL on OS X Snow Leopard w/Xcode4 (no PPC support) xcode xcode

Installing PIL on OS X Snow Leopard w/Xcode4 (no PPC support)


The solution has nothing to do with PIL but rather setting gcc's ARCHFLAGS:

ARCHFLAGS="-arch i386 -arch x86_64" sudo pip install PIL


ARCHFLAGS doesn't seem to get passed into sudo. I had to do

sudo -s

then ARCHFLAGS="-arch i386 -arch x86_64" pip install PILto make it work.


A better way to solve this issue, in my opinion, would be to edit your ~/.profile or /etc/bashrc and add the line:

export ARCHFLAGS="-arch i386 -arch x86_64"

Will save messing around with any future installations (I've just had to do this for installing lots of Perl modules in CPAN)!