Configure Error Cannot Find Snmp Headers Spine
Contents |
- SNMP Library Version Mismatch Moderators: Moderators, Developers Page 1 of 1 [ 12
Configure Error Cannot Find Snmp Headers Use With Snmp To Specify Non Default Path
posts ] Previous topic | Next topic Author Message Cedrick configure error cannot find ssl headers Post subject: [SOLVED] Spine - SNMP Library Version MismatchPosted: Tue Nov 20, 2007 4:17 pm Joined: Tue Nov
Cacti Spine Install
20, 2007 3:55 pmPosts: 9 Hello, Having trouble getting Spine 0.8.7 running with Cacti 0.8.7a on Ubuntu Server 7.04: #uname -a #Linux Cacti-U 2.6.20-16-server #2 SMP Sun Sep 23 configure: error: cannot find mysql headers. use --with-mysql= to specify non-default path. 19:57:25 UTC 2007 i686 GNU/Linux When I issue the cmd: #/usr/local/spine/spine --conf=/usr/local/spine/spine.conf --verbosity=5 4 4 I receive this error: 11/20/2007 03:47:15 PM - SPINE: Poller[0] DEBUG: SNMP Header Version is 5.4.1 11/20/2007 03:47:15 PM - SPINE: Poller[0] DEBUG: SNMP Library Version is 5.2.3 SPINE: Poller[0] ERROR: SNMP Library Version Mismatch (5.4.1 vs 5.2.3) (Spine parent) I had to cacti spine download compile using: aclocal libtoolize --force autoconf autoheader automake ./configure (make) And have adjusted the BUFSIZE from 1024 to 2048 in spine.h. I have come across info on the web about rebuilding the SNMP package, but not being a linux guru don't know what to do and can't find any more info. Ideas anyone? Any help would be very much appreciated. If you need version info on anything or commands run, please post syntax. Thank you very much. Top TheWitness Post subject: Posted: Tue Nov 20, 2007 11:19 pm Developer Joined: Tue May 14, 2002 5:08 pmPosts: 14862Location: MI, USA That's not the problem, you have one version of the dev package installed and another of the lib packages. You should run the following: rpm -qa | grep -i snmp Make sure you only have one version installed. TheWitness _________________True understanding begins only when we realize how little we truly understand...Life is an adventure, let yours begin with Cacti!Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine
the net-snmp
Install Cacti Spine Centos
library for minmumal SNMP polling overhead. Cactid is a install cacti spine ubuntu replacement for the default cmd.php poller so you must decide if using Cactid
Fatal: Unable To Locate Dos2unix Utility
makes sense for your installation. Contents 1 Installation 1.1 Pre-requituions 1.2 Compiling 2 References Installation Pre-requituions Make sure that the following packages http://forums.cacti.net/about24430.html are installed before attempting to compile Spine: net-snmp utilities and development libraries mysql utilities, server and development libraries openssl development libraries Compiling wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8c.tar.gz tar xvzf cacti-spine-*.tar.gz cd cacti-spine-* ./configure Error: configure: error: Cannot find MySQL headers. Use --with-mysql= to specify non-default path. Solution: install http://wiki.ciscolinux.co.uk/index.php?title=Cacti_spine libmysqlclient-dev development library sudo apt-get install libmysqlclient-dev Error: configure: error: Cannot find SNMP headers. Use --with-snmp= to specify non-default path. Solution: install libperl-dev library. At this point you need net-snmp dev (Ubuntu calls it just snmp package) package. sudo apt-get install libperl-dev If does not work a whole process of NET-SNMP installation is described http://www.net-snmp.org/wiki/index.php/Net-Snmp_on_Ubuntu wget http://sourceforge.net/projects/net-snmp/files/net-snmp/5.7.3/net-snmp-5.7.3.tar.gz tar -xvzf net-snmp-*.tar.gz cd net-snmp-* ./configure #go with defaults make sudo make install #I did not install but ./configure of cacti-spine finished, most likely because libperl-dev has been installed pwd /home/username echo export LD_LIBRARY_PATH=/usr/local/lib >> .bashrc #For the net-snmp applications to work we need to add an export command to our ".bashrc" file continue installing spine .......... make sudo make install cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf vi /etc/spine.conf #update DB connection to cacti (the values are not cl
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7c.tar.gzroot@server:/var/www/noc# tar -xzvf cacti-spine-0.8.7c.tar.gzroot@server:/var/www/noc# mv cacti-spine-0.8.7c spineroot@server:/var/www/noc# cd spine/2.- Prepare development environmentBe sure http://wmunguiam.blogspot.com/2009/01/howto-install-spine-engine-for-cacti.html you have autoconf, automake and libtool to compile.root@server:/var/www/noc# http://www.sosolinux.com/thread-546-1-1.html apt-get install autoconf automake libtool root@server:/var/www/noc# apt-get install libsnmp-dev libsnmp-base libsnmp153.- Install SpineSteps:shell>aclocalshell>libtoolize --forceshell>autoheadershell>autoconfshell>automakeshell>./configureshell>makeshell>make installa.-aclocalroot@server:/var/www/noc/spine# aclocal/usr/share/aclocal/libmcrypt.m4:17: warning: underquoted definition of AM_PATH_LIBMCRYPT/usr/share/aclocal/libmcrypt.m4:17: run info '(automake)Extending aclocal'/usr/share/aclocal/libmcrypt.m4:17: or see http://sources.redhat.com/automake/automake.html#Extending-aclocalb.- libtoolize --forceroot@server:/var/www/noc/spine# libtoolize --forceUsing `AC_PROG_RANLIB' is rendered cannot find obsolete by `AC_PROG_LIBTOOL'Putting files in AC_CONFIG_AUX_DIR, `config'.c.- autoheader, autoconf and automakeroot@server:/var/www/noc/spine# autoheaderroot@server:/var/www/noc/spine# autoconfroot@server:/var/www/noc/spine# automaked.- ./configureroot@server:/var/www/noc/spine# ./configurechecking build system type... i686-pc-linux-gnuchecking host system type... i686-pc-linux-gnuchecking for a BSD-compatible install... /usr/bin/install -cchecking whether build environment is sane... yeschecking for a thread-safe mkdir -p... /bin/mkdir -pchecking configure error cannot for gawk... gawkchecking whether make sets $(MAKE)... yeschecking for gawk... (cached) gawkchecking for gcc... gccchecking for C compiler default output file name... a.outchecking whether the C compiler works... yeschecking whether we are cross compiling... nochecking for suffix of executables...checking for suffix of object files... ochecking whether we are using the GNU C compiler... yeschecking whether gcc accepts -g... yeschecking for gcc option to accept ISO C89... none neededchecking for style of include used by make... GNUchecking dependency style of gcc... gcc3checking how to run the C preprocessor... gcc -Echecking for a BSD-compatible install... /usr/bin/install -cchecking whether ln -s works... yeschecking for a sed that does not truncate output... /bin/sedchecking for grep that handles long lines and -e... /bin/grepchecking for egrep... /bin/grep -Echecking for ld used by gcc
搜索 热搜: .htaccess route snmp gcc linux cpu dump php root删除文件 Cache 利用top top 后台进程 Linux awk tar apache日志 iostat zend mysql占用cpu 只能进入安全 本版帖子用户 搜搜linux论坛- linux学习论坛,linux 技术论坛»搜搜linux论坛 › 网络架构 › 集群存储/监控 › 关于编译安装cacti-spine:configure: error: Cannot fin ... 返回列表 查看: 1515|回复: 0 [系统监控] 关于编译安装cacti-spine:configure: error: Cannot find SNMP headers.错误 [复制链接] Jeremy Jeremy 当前离线 积分2307 电梯直达 楼主 发表于 2013-7-20 22:08:04 | 只看该作者 |倒序浏览 |阅读模式 前言:今天需要做一个教材是关于cacti的,一切清车熟路后到了该编译安装spine插件,configure之后报configure: error: Cannot find SNMP headers.错误。这个错误一般是因为如果你是编译安装net-snmp的话,那么你在编译安装spine时如果不用--with-snmp参数指定net-snmp编译的目录时,会报出此错误。 但是我的net-snmp是yum安装的,并非源代码编译安装。搜索了许久终于发现了问题,是缺少 net-snmp-devel所致。 下面是其原贴,感谢这位朋友总结的关于cacti报错相关的问题解决方案: cacti 安装配置我在这里就不讲了,但是安装和配置cacti时,要注意几点我在这里给大家说明!1、配置好LAMP环境 参见其他相关文章。2、如果没有安装mysql-devel 在安装cactid的时候会报错: configure: error: Cannot find MySQL header files yum install mysql-devel 3、安装net-snmp-libs net-snmp net-snmp-utils 还需要安装net-snmp-devel 不然会报configure: error: Cannot find SNMP headers.错误 # sudo yum install net-snmp-* 安装好后启动snmp服务 /etc/init.d/snmpd start 测试snmp是否运作,默认密码字段为public,可更改/etc/snmp/snmpd.conf 更你为你的密码字段 snmpwalk -v 2c -c public localhost system 4、解压cacti包并把包放入apache的工作目录里 mv cacti-0.8.7d /var/www/html/cacti 5、进入mysql把cacti的数据库导入 mysql< create database cacti;mysql< use cacti;mysql< source /var/www/html/cacti/cacti.sqlmysql< grant all on cacti.* to cacti@localhost identified by 'cacti'; 6、进入cactid目录(我下载的cacti包内并无configure执行文件,并未编译即可正确运行?) ./configure --prefix=/usr/local/cacti --with-mysql=/usr/ --with-net-snmp&& make && make install 7、把安装目录下生成的cactid.conf拷贝到