免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2686 | 回复: 3

[其他] 编译rrdtool-1.5.4时报错 [复制链接]

论坛徽章:
0
发表于 2015-08-17 09:29 |显示全部楼层
编译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

请指点解决方法,非常感谢!

论坛徽章:
17
2015年辞旧岁徽章
日期:2015-03-03 16:54:152017金鸡报晓
日期:2017-02-08 10:39:422017金鸡报晓
日期:2017-01-10 15:19:56JAVA
日期:2016-11-01 13:25:46C
日期:2016-10-25 16:01:4715-16赛季CBA联赛之八一
日期:2016-06-21 23:38:0815-16赛季CBA联赛之山东
日期:2016-05-12 12:49:54IT运维版块每日发帖之星
日期:2016-04-20 06:20:00IT运维版块每日发帖之星
日期:2016-03-22 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13IT运维版块每日发帖之星
日期:2015-08-25 06:20:002015亚冠之德黑兰石油
日期:2015-08-22 22:55:54
发表于 2015-08-18 13:15 |显示全部楼层
本帖最后由 ccjsj1 于 2015-08-18 13:31 编辑

可能是rrdtool的版本太高了,是在哪个linx上安装的,下载rrdtoo的url发一下。

论坛徽章:
17
2015年辞旧岁徽章
日期:2015-03-03 16:54:152017金鸡报晓
日期:2017-02-08 10:39:422017金鸡报晓
日期:2017-01-10 15:19:56JAVA
日期:2016-11-01 13:25:46C
日期:2016-10-25 16:01:4715-16赛季CBA联赛之八一
日期:2016-06-21 23:38:0815-16赛季CBA联赛之山东
日期:2016-05-12 12:49:54IT运维版块每日发帖之星
日期:2016-04-20 06:20:00IT运维版块每日发帖之星
日期:2016-03-22 06:20:00黄金圣斗士
日期:2015-11-24 10:43:13IT运维版块每日发帖之星
日期:2015-08-25 06:20:002015亚冠之德黑兰石油
日期:2015-08-22 22:55:54
发表于 2015-08-18 14:54 |显示全部楼层
在ubuntu14.04下,安装1.5.4时报错,安装这个后(sudo apt-get install libcogl-pango-dev),configure正常

----------------------------------------------------------------
Config is DONE!

          With MMAP IO: yes
      Build rrd_getopt: no
       Static programs: no
          Perl Modules: perl_piped perl_shared
           Perl Binary: /usr/bin/perl
          Perl Version: 5.18.2
          Perl Options: PREFIX=/opt/rrdtool-1.4.5 LIB=/opt/rrdtool-1.4.5/lib/perl/5.18.2
          Ruby Modules:
           Ruby Binary: /usr/bin/ruby
          Ruby Options: sitedir=/opt/rrdtool-1.4.5/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 -lglib-2.0  

Type 'make' to compile the software and use 'make install' to
install everything to: /opt/rrdtool-1.4.5.

       ... 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>
----------------------------------------------------------------

论坛徽章:
0
发表于 2015-08-18 15:17 |显示全部楼层
ccjsj1 发表于 2015-08-18 13:15
可能是rrdtool的版本太高了,是在哪个linx上安装的,下载rrdtoo的url发一下。

GUN Linux版本
# cat /etc/centos-release
CentOS Linux release 7.1.1503 (Core)
# rpm -q centos-release
centos-release-7-1.1503.el7.centos.2.8.x86_64

rrdtool版本
#ls /usr/local/src/rrdtool-1.5.4
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP