Chinaunix首页 | 论坛 | 博客
  • 博客访问: 171109
  • 博文数量: 65
  • 博客积分: 1400
  • 博客等级: 上尉
  • 技术积分: 720
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-16 08:59
文章分类

全部博文(65)

文章存档

2011年(3)

2010年(3)

2009年(43)

2008年(16)

我的朋友

分类: LINUX

2008-12-18 16:36:24

样在安装的时候就出现编译错误:
----------------------------------------------------------------------------
* I could not find a working copy of libart-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 libart_lgpl_2 and its header files. If
  you have not installed libart-2.0, you can get it either from its original home on

     

  You can find also find an archive copy on

     

  The last tested version of libart-2.0 is 2.3.17.

       LIBS=-lm
   LDFLAGS=
  CPPFLAGS= -I/usr/include/libart-2.0


checking for cgiInit in -lcgi... yes
checking cgi.h usability... yes
checking cgi.h presence... yes
checking for cgi.h... yes
configure: error: Please fix the library issues listed above and try again.

解决方案:(在之前要先安装CGILIB-0.5,安装方法,参加见另一说明文档)

下载libart_lgpl-2.3.17.ta.gz

#tar -xzvf libart_lgpl-2.3.17.tar.gz

#cd libart_lgpl

#./configure  (注意:此处不要安装到一个目录下,如./configure --prefix=/usr/local/libart-2.0,如果这样的话,在安装rrdtool的时候,会一直报错)

#make

#make install (会将文件安装 到/usr/local/include目录下)

#ln -s /usr/local/include/libart-2.0 /usr/include

然后开始安装rrdtool就可以啦

 


 

阅读(691) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~