README文件说:
Dependencies
------------
cairo >= 1.10.0
Python >= 2.6
似乎我需要先安装cairo。但如何安装'cairo'?
感谢您的帮助。我安装了libcairo2。但是当我执行命令'sudo python waf configure'时仍然存在一些错误:
barry@ubuntu:~/graphite/py2cairo$ sudo python waf configure
./options()
Setting top to : /home/barry/graphite/py2cairo
Setting out to : /home/barry/graphite/py2cairo/build_directory
./configure()
Checking for 'gcc' (c compiler) : ok
Checking for program python : /usr/bin/python
Checking for python version : (2, 7, 3, 'final', 0)
Checking for library python2.7 : not found
Checking for library python2.7 : not found
Checking for library python2.7 : yes
Checking for program python2.7-config : not found
Checking for program python-config-2.7 : not found
Checking for header Python.h : yes
Checking for program pkg-config : /usr/bin/pkg-config
Checking for 'cairo' >= 1.10.2 : not found
The configuration failed
(complete log in /home/barry/graphite/py2cairo/build_directory/config.log)
答案 0 :(得分:0)
在Ubuntu中找到数据包的全名,然后安装它:
apt-cache search libcairo2
apt-get install libcairo2