如何在ubuntu 11.10上安装py2cairo?

时间:2012-06-29 08:57:16

标签: python

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)

1 个答案:

答案 0 :(得分:0)

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

apt-cache search libcairo2
apt-get install libcairo2