在Mac OS 10.7上构建pybindgen时出现waf错误

时间:2012-03-13 20:59:36

标签: python waf pybindgen

我正在尝试在Mac OS 10.7上构建Pybindgen。 Lion Everything在Ubuntu上工作得很好,但是......

在OS X上,waf安装程序(Pybindgen使用waf构建和安装)扼流圈:

Checking for program python              : ok /usr/bin/python 
Checking for Python version >= 2.3       : ok 2.7.1 
Checking for program gcc,cc              : ok /usr/bin/gcc 
Checking for program cpp                 : ok /usr/bin/cpp 
Checking for program ar                  : ok /usr/bin/ar 
Checking for program ranlib              : ok /usr/bin/ranlib 
Checking for gcc                         : ok  
Checking for program g++,c++             : ok /usr/bin/g++ 
Checking for g++                         : ok  
Checking for library python2.7           : not found 
Checking for library python2.7           : not found 
Checking for library python27            : not found 
Checking for program python2.7-config    : ok /usr/bin/python2.7-config 
Checking for header Python.h             : Could not find the python development headers 
 error: the configuration failed (see '/Users/kosta/Downloads/pybindgen-0.15.0/build/config.log')

=>但我100%肯定我的Mac SDk中至少有Python.h ...我知道它就在那里......我只是不知道如何确保waf找到它... waf中有一个函数叫做check_python_headers这似乎是个问题。我该如何解决这个问题?

0 个答案:

没有答案