日期:2014-05-16  浏览次数:20544 次

Linux上简单配置安装cacti(三)cacti准备net-snmp
Linux上简单配置安装cacti(四)cacti准备net-snmp

4.安装cacti-0.8.7e
cacti需要net-snmp和rrdtool两个工具来配合使用
所以先要安装
4.1 net-snmp
检查net-snmp是否已经安装了
命令:snmpd -v
返回信息如下:
NET-SNMP version: 5.1.2
Web:               http://www.net-snmp.org/
Email:             net-snmp-coders@lists.sourceforge.net
4.2 安装rrdtool
下载地址
http://oss.oetiker.ch/rrdtool/pub/
我下载了文件
rrdtool-1.4.2.tar.gz
tar zxvf rrdtool-1.4.2.tar.gz
cd rrdtool-1.4.2
./configure –prefix=/usr/local/rrdtool
报错如下:
----------------------------------------
* I found a copy of pkgconfig, but there is no cairo-png.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 cairo-png. 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 libcairo and its header files. If
you have not installed cairo-png, you can get it either from its original home on
     http://cairographics.org/releases/
You can find also find an archive copy on
     http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-png is 1.4.6.
       LIBS=-lm
   LDFLAGS=
CPPFLAGS=
----------------------------------------
checking for cairo_svg_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------
* I found a copy of pkgconfig, but there is no cairo-svg.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 cairo-svg. 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 libcairo and its header files. If
you have not installed cairo-svg, you can get it either from its original home on
     http://cairographics.org/releases/
You can find also find an archive copy on
     http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-svg is 1.4.6.
       LIBS=-lm
   LDFLAGS=
CPPFLAGS=
----------------------------------------
checking for cairo_pdf_surface_create in -lcairo... no
checking for pkg-config... (cached) pkg-config
configure: WARNING:
----------------------------------------
* I found a copy of pkgconfig, but there is no cairo-pdf.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 cairo-pdf. 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 libcairo and its header files. If
you have not installed cairo-pdf, you can get it either from its original home on
     http://cairographics.org/releases/
You can find also find an archive copy on
     http://oss.oetiker.ch/rrdtool/pub/libs
The last tested version of cairo-pdf is 1.4.6.
       LIBS=-