对于我读过的内容,我需要Python-Dev,如何将它安装在OSX上?无法在OSX上构建mercurial - Python.h未找到
我认为我的问题是,我的Xcode没有正确安装,我没有我应该的路径。
这个前面的问题:
Where is gcc on OSX? I have installed Xcode already
正要我找不到GCC,现在我找不到Python.h
如果我只是链接到我的/ Developer目录到别的地方在/ usr/???
这是我的输出:
$ sudo easy_install mercurial
Password:
Searching for mercurial
Reading http://pypi.python.org/simple/mercurial/
Reading http://www.selenic.com/mercurial
Best match: mercurial 1.5.1
Downloading http://mercurial.selenic.com/release/mercurial-1.5.1.tar.gz
Processing mercurial-1.5.1.tar.gz
Running mercurial-1.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-_7RaTq/mercurial-1.5.1/egg-dist-tmp-l7JP3u
mercurial/base85.c:12:20: error: Python.h: No such file or directory
...
在此先感谢。
谢谢,我检查过,是的,也有。现在的问题是,如何让gcc找到它。有没有办法全局修改* include路径*? – OscarRyz 2010-04-21 21:16:08
@OscarRyz:将'-I'标志传递给gcc:'gcc -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5' – mipadi 2010-07-06 17:25:03