checking priv.h presence... no 

checking for priv.h... no 
checking whether we are using Solaris privileges... no 
checking sys/capability.h usability... yes 
checking sys/capability.h presence... yes 
checking for sys/capability.h... yes 
checking whether we are using Linux Capabilities... no 
checking for mysql_init in -lmysqlclient_r... yes 
checking for mysql_thread_init in -lmysqlclient_r... yes 
configure: error: Cannot find SNMP headers.  Use --with-snmp= to specify non-default path.

在编译安装cacti-spine时,提示如下错误:

看了下原来是找不到snmp头文件

这样的话就需要定义下snmp的安装位置,需要在编译时加入如下参数:

./configure --prefix=/usr/local/spine --with-snmp=/usr/local/net-snmp

 

这样就可接着进行了:

make && make install

ok