2011-07-21 80 views
2

Lion升级后,我不得不重新安装我的python软件包,并遇到安装PIL和pysqlite的问题。无法在OS X 10.7 Lion升级后编译PIL/pysqlite

... 
unable to execute gcc-4.2: No such file or directory 
error: command 'gcc-4.2' failed with exit status 1 
+0

也许问题在于它迟了,但我无法弄清楚最近几个小时的情况..我发布了我的简易修复程序以防其他人遇到这种情况。 –

回答

2

原来所有我需要做的就是连接起来的gcc-4.2,这是在/开发人员的/ usr/bin中

我加export PATH=$PATH:/Developer/usr/bin到〜/ .bash_profile

2

LN -s /开发人员/ usr/bin/gcc /Developer/usr/bin/gcc-4.2

+0

ln:/Developer/usr/bin/gcc-4.2:没有这样的文件或目录 – DavidLiu