配置pycairo 1.10.0时找不到Python.h

时间:2013-08-16 06:24:06

标签: python python-3.x pycairo

我正在尝试在virtualenv中设置pycairo,但在搜索Python.h头文件时设置失败

(draw)[root@collabdraw pycairo]# python ./waf configure --prefix=/usr
  ./options()
Setting top to                           : /root/pycairo 
Setting out to                           : /root/pycairo/build_directory 
  ./configure()
Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
Checking for program python              : /root/virtualenvt/draw/bin/python 
Checking for python version              : (3, 2, 0, 'final', 0) 
Checking for library python3.2 in LIBDIR : not found 
Checking for library python3.2 in python_LIBPL : not found 
Checking for library python3.2 in $prefix/libs : not found 
Checking for library python32 in LIBDIR        : not found 
Checking for library python32 in python_LIBPL  : not found 
Checking for library python32 in $prefix/libs  : not found 
Checking for program /root/virtualenvt/draw/bin/python-config,python3.2-config,python-   config-3.2,python3.2m-config : /root/virtualenvt/draw/bin/python3.2-config 
Checking for header Python.h                                                                                       : :-( 
Asking python-config for the flags (pyembed)                                                                       : yes 
Getting pyembed flags from python-config                                                                           : yes 
Asking python-config for the flags (pyext)                                                                         : yes 
Getting pyext flags from python-config                                                                             : Could not build python extensions 
The configuration failed
(complete log in /root/pycairo/build_directory/config.log)

python ./waf configure --prefix=/usr无法找到Python.h的任何想法?该文件位于virtaulenv目录

(draw)[root@collabdraw pycairo]# ls ~/virtualenvt/draw/include/python3.2m/Python.
Python.h  ##### This is the file

0 个答案:

没有答案