configure: error: Please fix the library issues listed above and try again错误解决方法

configure: error: Please fix the library issues listed above and try again错误解决方法

今天在编译安装rrdtool时,进行到[root@localhost rrdtool-1.4.8]# ./configure --prefix=/usr/local/rrdtool

报错如下:

checking for glib_check_version in -lglib-2.0... yes

checking glib.h usability... no

checking glib.h presence... no

checking for glib.h... no

checking for pkg-config... (cached) pkg-config

checking for glib_check_version in -lglib-2.0... yes

checking glib.h usability... yes

checking glib.h presence... yes

checking for glib.h... yes

checking for xmlParseFile in -lxml2... yes

checking libxml/parser.h usability... yes

checking libxml/parser.h presence... yes

checking for libxml/parser.h... yes

configure: error: Please fix the library issues listed above and try again.

仔细检查了一下应该是少了一些必须支持的库文件,执行以下命令:

[root@localhost rrdtool-1.4.8]# yum -y install pango*

安装完需要的库文件之后,我们重新运行./configure --prefix=/usr/local/rrdtool命令:

Config is DONE!

With MMAP IO: yes

Build rrd_getopt: no

Build rrd_graph: yes

Static programs: no

Perl Modules: perl_piped perl_shared

Perl Binary: /usr/bin/perl

Perl Version: 5.10.1

Perl Options: PREFIX=/usr/local/rrdtool INSTALL_BASE= LIB=/usr/local/rrdtool/lib/perl/5.10.1

Ruby Modules:

Ruby Binary: no

Ruby Options: sitedir=/usr/local/rrdtool/lib/ruby

Build Lua Bindings: no

Build Tcl Bindings: no

Build Python Bindings: no

Build rrdcgi: yes

Build librrd MT: yes

Use gettext: yes

With libDBI: no

With libwrap: no

Libraries: -lxml2 -lglib-2.0 -lcairo -lcairo -lcairo -lm -lcairo -lpng12 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -lglib-2.0

Type 'make' to compile the software and use 'make install' to

install everything to: /usr/local/rrdtool.

... that wishlist is NO JOKE. If you find RRDtool useful

make me happy. Go to http://tobi.oetiker.ch/wish and

place an order.

-- Tobi Oetiker <tobi@oetiker.ch>

----------------------------------------------------------------

编译通过,问题解决。