2

Lion 升级后,我不得不重新安装我的 python 包,并且在安装 PIL 和 pysqlite 时遇到了问题。

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

2 回答 2

2

原来我所要做的就是链接 gcc-4.2,它位于 /Developer/usr/bin

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

于 2011-07-21T04:29:30.743 回答
2

ln -s /Developer/usr/bin/gcc /Developer/usr/bin/gcc-4.2

于 2011-12-13T09:27:41.403 回答