0

README 文件说:</p>

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)
4

1 回答 1

0

在 Ubuntu 中找到数据包的全名,然后安装它:

apt-cache search libcairo2
apt-get install libcairo2
于 2012-06-29T09:03:15.337 回答