【发布时间】:2012-06-12 21:56:09
【问题描述】:
我遇到了与this question 相同的问题。我尝试使用命令安装 libcairo 库
sudo yum install cairo-devel
之后,我通过 yum 删除并安装了 gnuplot。我仍然得到同样的错误。我还需要做什么才能让 gnuplot 让我使用 pngcairo?
我也通过 yum 安装了 pango。
当我尝试从源代码安装 gnuplot 时,我在 config.log 中收到这些消息:
configure:11776: checking for CAIROPANGO
configure:11784: $PKG_CONFIG --exists --print-errors "cairo >= 0.9.0 pango >= 1.10 pangocairo >= 1.10"
Package pango was not found in the pkg-config search path.
Perhaps you should add the directory containing `pango.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pango' found
Package pangocairo was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangocairo.pc'
to the PKG_CONFIG_PATH environment variable
No package 'pangocairo' found
我究竟要向 PKG_CONFIG_PATH 添加什么?我什至不确定在哪里可以找到我安装的 pango 和 cairo-devel 库。
【问题讨论】:
-
什么操作系统?可能是 Fedora? forums.fedoraforum.org/showthread.php?t=250946
-
请注意,您还需要 pango。你能从
configure.log得到任何信息吗? -
糟糕——抱歉。该文件是
config.log。您应该寻找有关pango或cairo或pangocairo等的行。 -
我在红帽公司。我通过 yum 安装了 pango 和 cairo-devel,但是当我安装 gnuplot 时,它没有找到它们。当我尝试从源代码制作 gnuplot 时,它也看不到库,如果我尝试自己构建它们,它只会让我陷入依赖地狱。我将从 config.log 中添加相关行
-
试试
locate pango.pc和locate pangocairo.pc。如果 locate 发现了什么,那是个好消息。将它添加到路径中——(假设你在 bash 中),类似export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/path/to/pango.pc(没有pango.pc部分)可能会有所帮助。