• yum


    rrdtool 编译出错:Please fix the library issues listed above and try again.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<<p>有熟悉selinux的高手吗br />you have not installed libxml-2.0, you can get it either from its original home on

    [url]http://xmlsoft.org/downloads.html[/url]

    You can find also find an archive copy on

    [url]http://oss.oetiker.ch/rrdtool/pub/libs[/url]

    The last tested version of libxml-2.0 is 2.6.31.

    LIBS=-lcairo -lcairo -lcairo -lm-lwrap -lcairo -lpng12 -lglib-2.0 -lpangocairo-1.0 -lpango-1.0 -lcairo -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
    LDFLAGS= -L/lib -L/lib
    CPPFLAGS= -I/usr/include/cairo -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/libxml2

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

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



    请各位帮帮解决这个问题:谢谢。是不是因为环境问题?这些包均安装:
    [root@bogon rrdtool]# rpm -qa | grep libpng
    libpng-1.2.10-7.1.el5_5.3
    libpng-devel-1.2.10-7.1.el5_5.3
    [root@bogon rrdtool]# rpm -qa | grep freetype
    freetype-2.2.1-28.el5_5.1
    freetype-devel-2.2.1-28.el5_5.1
    [root@bogon rrdtool]# rpm -qa | grep libart_lgpl
    libart_lgpl-2.3.17-4
    libart_lgpl-devel-2.3.17-4

    tar zxvf cgilib-0.5.tar.gz
    cd cgilib-0.5
    make
    cp libcgi.a /usr/local/lib
    cp cgi.h /usr/include

    均安装[quote]* 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[/quote]
    楼主需要先安装linxml的库才行.试试yum install libxml2-devel

  • 相关阅读:
    springcloud系列五 feign远程调用服务
    ribbon负载均衡
    使用RestTemplate时报错java.lang.IllegalStateException: No instances available for 127.0.0.1
    HBase介绍
    HBase单机模式安装
    HDFS介绍及简单操作
    zookeeper三种模式安装详解(centos 7+zookeeper-3.4.9)
    zookeeper介绍
    hadoop搭建伪分布式集群(centos7+hadoop-3.1.0/2.7.7)
    linux配置本地yum源
  • 原文地址:https://www.cnblogs.com/seasonsstory/p/3174052.html
Copyright © 2020-2023  润新知