我正在设置OS X 10.7。
我使用默认安装的Python:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
我使用一个名为easy_install的基于Python的包管理器。 看起来,Easy_install无法找到编译器。
编辑:当我尝试安装MySQL-python时,我收到了此错误:
$ sudo easy_install MySQL-python
Password:
Searching for MySQL-python
Reading http://pypi.python.org/simple/MySQL-python/
Reading http://sourceforge.net/projects/mysql-python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3
Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz
Processing MySQL-python-1.2.3.tar.gz
Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P9H9WX/MySQL-python-1.2.3/egg-dist-tmp-rRTfZL
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
错误:设置脚本退出,错误代码为:命令“llvm-gcc-4.2”退出状态为1
Xcode 4.1使用GCC,但是在Xcode 4.2中似乎发生了变化。
Apple想让我们使用什么编译器? 如何设置配置文件以便我可以编译OSS?