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

来源:互联网 发布:网络人头像 编辑:程序博客网 时间:2024/06/15 08:28

感谢分享:https://www.aliyun.com/zixun/content/3_12_519180.html

感谢分享:http://blog.csdn.net/home_zhang/article/details/8162347

今天在编译安装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 xmlhttp://www.aliyun.com/zixun/aggregation/33959.html">ParseFile 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>
----------------------------------------------------------------

编译通过,问题解决。

原文链接:http://www.qnr.cn/pc/lin/study/201204/768057.html

 

RRDTool官方使用手册链接:http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html#___top

 

 

一、使用yum安装:
    在 /etc/yum.repos.d/下面新建dag.repo文件在文件中输入源地址:
    [root@www.linuxidc.com yum.repos.d]# cat dag.repo
    [dag]
    name=Dag RPM Repository for Red Hat Enterprise Linux
    baseurl=http://apt.sw.be/RedHat/el$releasever/en/$basearch/dag
    gpgcheck=1
    gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
    enabled=1
    [root@www.linuxidc.com yum.repos.d]#yum -y install rrdtool
    这样就可以完成RRDTool安装……
    二、软件包安装:
    先yum安装所要的库文件:
    [root@www.linuxidc.com yum.repos.d]#yum install cairo-devel libxml2-devel pango-devel pango libpng-devel freetype freetype-devel libart_lgpl-devel
    然后下载rrdtool包,安装:
    [root@www.linuxidc.com src]#wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.3.1.tar.gz
    [root@www.linuxidc.com src]#tar -zxvf rrdtool-1.3.1.tar.gz
    [root@www.linuxidc.com src]#./configure –prefix=/usr/local/rrdtool && make && make install
    运行rrdtool –v测试安装成功没有:
    [root@www.linuxidc.com src]#rrdtool -v //可以看到RRDTool的用法以及版本信息
    三、另一种yum安装(张士波用的是这种方法,其他安装方法没有测试)

    [root@www.linuxidc.com src]#wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
    [root@www.linuxidc.com src]#rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
    [root@www.linuxidc.com src]#yum -y install rrdtool*


0 0
原创粉丝点击