安装rrdtool出现的错误

简介:
在安装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 
[url]http://people.ee.ethz.ch/oetiker/webtools/rrdtool/pub/libs/cgilib-0.5.tar.gz[/url] 
wget  [url]http://people.ee.ethz.ch/oetiker/webtools/rrdtool/pub/libs/cgilib-0.5.tar.gz[/url] 

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
 
守住说还要
cp libcgi.a /usr/lib
cp cgi.h /usr/include
 
感谢守住的帮助

     本文转自fine102 51CTO博客,原文链接:http://blog.51cto.com/gzmaster/65286,如需转载请自行联系原作者



相关文章
|
10月前
无法执行 GraphicsMagick/ImageMagick #14
无法执行 GraphicsMagick/ImageMagick #14
36 0
|
数据库
排错集01——使用yum命令提示“错误:无法从 /var/lib/rpm 打开软件包数据库”
一、问题/现象: 使用yum命令安装软件包时,报错“无法从 /var/lib/rpm 打开软件包数据库”:
1452 0
pip install安装某些库出现ReadTimeoutError错误的解决办法
pip install安装某些库出现ReadTimeoutError错误的解决办法
pip install安装某些库出现ReadTimeoutError错误的解决办法