博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
安装rrdtool出现的错误
阅读量:6206 次
发布时间:2019-06-21

本文共 2897 字,大约阅读时间需要 9 分钟。

在安装Nagios的过程中因为要安装pnp来提供出图,安装pnp的条件是
  • Perl >= 5.x without additional modules
  • RRDtool >= 1.x, better 1.2 but not compulsory
  • PHP >= 4.3 for Webfrontend
    • PHP-extention zlib and GD if PDF-exports are needed.
  • Nagios 2.x oder higher  
使用rpm -qa |grep perl
perl-5.8.8-10
提示已经安装了,接下来安装rrdtool没有想到了个麻烦事情
当我将rrdtool-1.2.6.tar.gz下载下来
tar xzvf rrdtool-1.2.6.tar.gz
cd rrdtool-1.2.6
./configure配置却出现错误
configure: WARNING:
----------------------------------------------------------------------------
* I found a copy of pkgconfig, but there is no cgilib.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 cgilib. 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 libcgi and its header files. If
  you have not installed cgilib, you can get it either from its original home on
     
  You can find also find an archive copy on
     
  The last tested version of cgilib is 0.5.
       LIBS=-lm 
   LDFLAGS=
  CPPFLAGS=
----------------------------------------------------------------------------
                
checking for art_vpath_add_point in -lart_lgpl_2... yes
checking libart_lgpl/libart.h usability... yes
checking libart_lgpl/libart.h presence... yes
checking for libart_lgpl/libart.h... yes
checking for zlibVersion in -lz... yes
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for png_access_version_number in -lpng... yes
checking png.h usability... yes
checking png.h presence... yes
checking for png.h... yes
checking for FT_Init_FreeType in -lfreetype... yes
checking ft2build.h usability... yes
checking ft2build.h presence... yes
checking for ft2build.h... yes
configure: error: Please fix the library issues listed above and try again.
 
我将configure: error: Please fix the library issues listed above and try again.放到google中搜索
发现有许多和我一样错误。
打开第一个链接
有这样一个解决方法
step 1. on root direktory get cgilib from 
 
wget   
step 2. extract file 
tar zxf cgilib-0.5.tar.gz 
step 3. chg to dir cgilib-0.5 
cd cgilib-0.5 
step 4. make && make install 
step 5. pwd 
step 6. create cgilib.pc file 
pico /usr/lib/pkgconfig/cgilib.pc 
paste it 
#-----cut from here------ 
prefix=/root/cgilib-0.5 
exec_prefix=/root/cgilib-0.5 
libdir=/root/cgilib-0.5 
includedir=/root/cgilib-0.5 
Name: cgilib 
Description: Common Gateway Interface (CGI) Library 
Version: D_ver 
Libs: -L${libdir} -lcgi 
Cflags: -I${includedir} 
#---------and here------ 
then save cgilib.pc 
step 7. now try to compile rrdtools 
step 8. make && make install 
step 9. finish
 
安装好cgilib后又找到一个帖子
守住说还要
cp libcgi.a /usr/lib
cp cgi.h /usr/include
 
感谢守住的帮助
     本文转自fine102 51CTO博客,原文链接:http://blog.51cto.com/gzmaster/65286,如需转载请自行联系原作者
你可能感兴趣的文章
wiki常用语法
查看>>
Hinton神经网络公开课10 Combining multiple neural networks to improve generalization
查看>>
linux-shell面试题 之二
查看>>
10 进制转 2 进制、16 进制
查看>>
Wordpress中显示页面当前位置
查看>>
HTML比较常用的标签
查看>>
【Spring】使用Spring和AMQP发送接收消息(下)
查看>>
SQL注入
查看>>
iOS UITableView 移除单元格选中时的高亮状态
查看>>
java中单例模式的3种实现
查看>>
openssl创建私有ca
查看>>
为什么我从 Git Flow 开发模式切换到了 Trunk Based 开发模式?
查看>>
mysql 数据库授权(给某个用户授权某个数据库)
查看>>
使用curl登陆上网账号
查看>>
将博客搬至CSDN
查看>>
Java技术中的三大特性
查看>>
Cloud Native 介绍
查看>>
linux下添加用户并赋予root权限
查看>>
linux 内核配置过程中遇到的问题
查看>>
linux程序莫名异常怎么查
查看>>