- 论坛徽章:
- 0
|
编译rrdtool-1.5.4时,报以下错误。但是相关依赖包和环境参数已设置。请问有什么建议和解决方法。
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no pangocairo.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of pangocairo. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libpangocairo-1.0 and its header files. If
you have not installed pangocairo, you can get it either from its original home on
ftp.gnome.org/pub/GNOME/sources/pango/1.28
You can find also find an archive copy on
oss.oetiker.ch/rrdtool/pub/libs
The last tested version of pangocairo is 1.28.4.
LIBS=-lpng -lm -lwrap -lglib-2.0
LDFLAGS= -L/usr/local/lib
CPPFLAGS= -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
----------------------------------------------------------------------------
checking for pango_font_map_create_context... no
checking for xmlParseFile in -lxml2... yes
checking libxml/parser.h usability... no
checking libxml/parser.h presence... no
checking for libxml/parser.h... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no libxml-2.0.pc file around.
You may want to set the PKG_CONFIG_PATH variable to point to its
location.
----------------------------------------------------------------------------
configure: WARNING:
----------------------------------------------------------------------------
* I could not find a working copy of libxml-2.0. Check config.log for hints on why
this is the case. Maybe you need to set LDFLAGS and CPPFLAGS appropriately
so that compiler and the linker can find libxml2 and its header files. If
you have not installed libxml-2.0, you can get it either from its original home on
xmlsoft.org/downloads.html
You can find also find an archive copy on
oss.oetiker.ch/rrdtool/pub/libs
The last tested version of libxml-2.0 is 2.7.8.
LIBS=-lpng -lm -lwrap -lglib-2.0
LDFLAGS= -L/usr/local/lib
CPPFLAGS= -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include
根据以上提示,分别安装了pangocairo和libxml-2.0。但还是报错。
# yum list pango*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: centos.ustc.edu.cn
Installed Packages
pango.x86_64 1.34.1-5.el7 @anaconda
pango-devel.x86_64 1.34.1-5.el7 @base
pangomm.x86_64 2.34.0-3.el7 @anaconda
pangomm-devel.x86_64 2.34.0-3.el7 @base
yum list libxml*
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: centos.ustc.edu.cn
Installed Packages
libxml2.x86_64 2.9.1-5.el7_1.2 @updates
libxml2-devel.x86_64 2.9.1-5.el7_1.2 @updates
libxml2-python.x86_64 2.9.1-5.el7_1.2 @updates
libxml2-static.x86_64 2.9.1-5.el7_1.2 @updates
.pc的环境参数在之前我已设置过
#find / -name libxml-2.0.pc
/usr/lib64/pkgconfig/libxml-2.0.pc
# find / -name pangocairo.pc
/usr/lib64/pkgconfig/pangocairo.pc
请指点解决方法,非常感谢! |
|