我想在我的Python 2.7.6安装py2cairo。 我从网上下载源码包http://cairographics.org/pycairo/ ,并解压缩文件:
tar xvfj py2cairo-1.10.0.tar.bz
根据安装步骤,我改变了当前目录:
cd py2cairo-1.10.0/
并做了配置。 通过WAF:
./waf configure --prefix=/usr
但是,停止执行报告错误:
./options()
Setting top to : /home/ruofan/Boost/py2cairo-1.10.0
Setting out to : /home/ruofan/Boost/py2cairo-1.10.0/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 6, 'final', 0)
Checking for library python2.7 : yes
Checking for program python2.7-config : /usr/bin/python2.7-config
command ['/usr/bin/python', '/usr/bin/python2.7-config', '--includes'] returned 1
我怎样才能解决这个问题?