当前位置: 技术问答>linux和unix
[help!!!]安装cario时出了问题,说是requested PNG backend could not be enabled
来源: 互联网 发布时间:2017-02-23
本文导语: ./configure时出现下面的错误: checking for cairo's PNG backend... configure: WARNING: Could not find libpng in the pkg-config search path checking whether cairo's PNG backend could be enabled... no configure: error: requested PNG backend could not...
./configure时出现下面的错误:
checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled
然后我输入# whereis libpng.pc
libpng: /usr/lib/libpng.so /usr/lib/libpng12.a /usr/lib/libpng12.so /usr/lib/libpng.a /usr/include/libpng /usr/share/man/man3/libpng.3.gz
看起来,我的系统中是有libpng库的
但我输入 # pkg-config --modversion libpng
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
pkg-config却找不到,这个怎么解决呀?
checking for cairo's PNG backend...
configure: WARNING: Could not find libpng in the pkg-config search path
checking whether cairo's PNG backend could be enabled... no
configure: error: requested PNG backend could not be enabled
然后我输入# whereis libpng.pc
libpng: /usr/lib/libpng.so /usr/lib/libpng12.a /usr/lib/libpng12.so /usr/lib/libpng.a /usr/include/libpng /usr/share/man/man3/libpng.3.gz
看起来,我的系统中是有libpng库的
但我输入 # pkg-config --modversion libpng
Package libpng was not found in the pkg-config search path.
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libpng' found
pkg-config却找不到,这个怎么解决呀?
|
Perhaps you should add the directory containing `libpng.pc'
to the PKG_CONFIG_PATH environment variable
看看这句话 说不定配置文件中默认的PKG_CONFIG_PATH和你系统中的不一样
to the PKG_CONFIG_PATH environment variable
看看这句话 说不定配置文件中默认的PKG_CONFIG_PATH和你系统中的不一样
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。