我在32位CentOS上做了这么多次,一切顺利。 但现在,在x64 CentOS上,我找不到开罗pixman。
Pixman 0.18.0安装在/ usr / local / lib(我相信是通常的位置)。
configuration为开罗1.8.10找不到它:
checking for cairo's image surface backend feature... checking for pixman... no no checking whether cairo's image surface backend feature could be enabled... no (requires pixman-1 >= 0.12.0 http://cairographics.org/releases/) configure: error: mandatory image surface backend feature could not be enabled
我试过设置环境variablespixman_LIBS = / usr / local / lib,但没有任何运气。
任何想法出了什么问题? 是否有可能看到开罗的configuration在哪里寻找pixman? searchpath或类似的东西?
/usr/local/lib
不是通常的地方。 64位库在某种类型的lib64
下。 使用file
来验证那里的库。
另外,/ usr / local不在大部分路径中,因此您可能还需要使用$LIBDIR
。
是否有可能看到开罗的配置在哪里寻找pixman?
看看config.log
; 对我来说,我看到了这样的线条:
configure:31597: $PKG_CONFIG --exists --print-errors "$pixman_REQUIRES" Package pixman-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found
这使问题(和解决方案)比./configure
的输出更为明显。
为了明确pixman-1.pc
,我需要确保PKG_CONFIG_PATH
包含/usr/local/lib/pkgconfig
,因为这是pixman-1.pc
地方。
在Mac上,我的问题是需要安装pixman。 刚刚安装它使用酿造,它的工作。
brew install pixman