Unable to compile PIL/pysqlite after OS X 10.7 Lion upgrade
After Lion upgrade, I had to reinstall my pyt开发者_开发问答hon packages, and ran into problem installing PIL and pysqlite.
...
unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1
Turned out all I had to do was link up gcc-4.2, which was in /Developer/usr/bin
I added export PATH=$PATH:/Developer/usr/bin
to ~/.bash_profile
ln -s /Developer/usr/bin/gcc /Developer/usr/bin/gcc-4.2
精彩评论