简体   繁体   English

安装py2cairo的步骤?

[英]Steps to install py2cairo?

Seems that pycairo was branched to py2cairo for 2.x versions back in May. 似乎pycairo于5月份分支到了py2cairo的2.x版本。 There are no pip or easy_install installation options for py2cairo. py2cairo没有pip或easy_install安装选项。 I've grabbed the latest py2cairo tar, as well as the cairo 1.8.10 package which is registered as a dependency. 我已经获取了最新的py2cairo tar以及注册为依赖项的cairo 1.8.10软件包。 When I try to configure cairo first, it errors out at the end that it needs pkg-config. 当我首先尝试配置cairo时,最后会出错,提示需要pkg-config。 However, I also can't find a pkg-config install option in pip or easy_install. 但是,我在pip或easy_install中也找不到pkg-config安装选项。 I'm at a complete loss as to how to get py2cairo installed. 我完全不知道如何安装py2cairo。 I'm doing this on Mac Snow Leopard. 我正在Mac Snow Leopard上执行此操作。

pkg-config is a helper tool used when compiling applications and libraries. pkg-config是在编译应用程序和库时使用的辅助工具。

If you are using macports then the package name is pkgconfig. 如果使用的是Macports,则软件包名称为pkgconfig。

port install pkgconfig

See the portfile at : http://trac.macports.org/browser/trunk/dports/devel/pkgconfig/Portfile 请参阅以下端口文件: http ://trac.macports.org/browser/trunk/dports/devel/pkgconfig/Portfile

The details are at : http://pkg-config.freedesktop.org/wiki/FrontPage 详细信息位于: http : //pkg-config.freedesktop.org/wiki/FrontPage

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM