我和这个问题有同样的问题。我尝试使用命令安装 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 库。