Cannot find NET-SNMP libraries(snmp)
Moderators: Developers, Moderators
Cannot find NET-SNMP libraries(snmp)
hi!
First full, sorry for my English.
1.I can not configure cacti-spine under FreeBSD ports.
when i run make command, the following error comes up
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
I have following snmp packages installed on system
proxy1# pkg_info | grep snmp
gsnmp-0.2.0_1 SNMP library written on top of glib and gnet2
net-snmp-5.4.2.1_6 An extendable SNMP implementation
php5-snmp-5.2.12 The snmp shared extension for php
snmp++-3.2.23 SNMP C++ library with V3 support
2. I tryed to compile cacti-spine from official source http://www.cacti.net/downloads/spine/ca ... .7e.tar.gz
The same error occurs
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
Please help me!
First full, sorry for my English.
1.I can not configure cacti-spine under FreeBSD ports.
when i run make command, the following error comes up
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
I have following snmp packages installed on system
proxy1# pkg_info | grep snmp
gsnmp-0.2.0_1 SNMP library written on top of glib and gnet2
net-snmp-5.4.2.1_6 An extendable SNMP implementation
php5-snmp-5.2.12 The snmp shared extension for php
snmp++-3.2.23 SNMP C++ library with V3 support
2. I tryed to compile cacti-spine from official source http://www.cacti.net/downloads/spine/ca ... .7e.tar.gz
The same error occurs
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
Please help me!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
The net-snmp should also install the libraries on FreeBSD. You may need to use command-line options with configure to tell it where to look (the libraries are in /usr/local/lib and the includes are in /usr/local/include).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
my friends, thank you for replies!!!!
The problem was in options of net-snmp package, while compiling it.
In other words, when i installed net-snmp, i chose every additional options, like IPV6 support, perl_embedded and etc.
I recompiled net-snmp package only with PERL, DUMMY options, and than i was able to install cacti-spine.
Thank you for your help!!!
The problem was in options of net-snmp package, while compiling it.
In other words, when i installed net-snmp, i chose every additional options, like IPV6 support, perl_embedded and etc.
I recompiled net-snmp package only with PERL, DUMMY options, and than i was able to install cacti-spine.
Thank you for your help!!!
I am having the same problem here, and unfortunately re-compiling Net-SNMP did not work.
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
===> Script "configure" failed unexpectedly.
Please report the problem to skreuzer@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7e/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/net-mgmt/cacti-spine.
# pkg_info | grep snmp
bsdpan-Net-SNMP-5.2.0 Net::SNMP - Object oriented interface to SNMP
net-snmp-5.5_3 An extendable SNMP implementation
p5-SNMP_Session-1.12 A perl5 module providing rudimentary access to SNMPv1 and v
php5-snmp-5.3.2_1 The snmp shared extension for php
# uname -a
FreeBSD <sanitized> 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Wed May 26 05:45:12 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
I get a similar error when I try to compile from source downloaded from cacti.net.
I have tried specifying the --with-snmp= path as /usr/local, /usr/local/include/net-snmp, /usr/local/include/net-snmp/library, /usr/lib, but nothing appears to work.
Any help would be appreciated, as I am unable to gather any statistical information.
checking if UCD-SNMP needs crypto support... no
checking if Net-SNMP needs crypto support... yes
checking for snmp_timeout in -lnetsnmp... no
Cannot find NET-SNMP libraries(snmp)... checking UCD-SNMP
checking for snmp_timeout in -lsnmp... no
configure: error: Cannot find UCD-SNMP libraries(snmp)
===> Script "configure" failed unexpectedly.
Please report the problem to skreuzer@FreeBSD.org [maintainer] and attach the
"/usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7e/config.log" including
the output of the failure of your make command. Also, it might be a good idea
to provide an overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/net-mgmt/cacti-spine.
# pkg_info | grep snmp
bsdpan-Net-SNMP-5.2.0 Net::SNMP - Object oriented interface to SNMP
net-snmp-5.5_3 An extendable SNMP implementation
p5-SNMP_Session-1.12 A perl5 module providing rudimentary access to SNMPv1 and v
php5-snmp-5.3.2_1 The snmp shared extension for php
# uname -a
FreeBSD <sanitized> 8.0-RELEASE-p3 FreeBSD 8.0-RELEASE-p3 #0: Wed May 26 05:45:12 UTC 2010 root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
I get a similar error when I try to compile from source downloaded from cacti.net.
I have tried specifying the --with-snmp= path as /usr/local, /usr/local/include/net-snmp, /usr/local/include/net-snmp/library, /usr/lib, but nothing appears to work.
Any help would be appreciated, as I am unable to gather any statistical information.
skatter
Here's a snippit from the config.log:
configure cc -o conftest -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O2 -pipe -fno-strict-aliasing -L/usr/local/lib -L/usr/local/lib/mysql -rpath=/usr/local/lib conftest.c -lnetsnmp -lmysqlclient_r -lmysqlclient_r -lcrypto -lz -lpthread -lm >&5
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
configure cc -o conftest -I/usr/local/include/net-snmp -I/usr/local/include/net-snmp/.. -I/usr/local/include/mysql -O2 -pipe -fno-strict-aliasing -L/usr/local/lib -L/usr/local/lib/mysql -rpath=/usr/local/lib conftest.c -lnetsnmp -lmysqlclient_r -lmysqlclient_r -lcrypto -lz -lpthread -lm >&5
/usr/local/lib/libnetsnmp.so: undefined reference to `__stack_chk_fail_local'
skatter
Re: Cannot find NET-SNMP libraries(snmp)
Bug fix: freebsd 8.1 cacti-spine
cacti# cd /usr/ports/net-mgmt/net-snmp
cacti# more Makefile
----------- - - - - - check
.if ${OSVERSION} >= 800000
CONFIGURE_ARGS+= --wuth-libs="-lssp_nonshared"
---------------------------
cacti# cd /usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7g/
cacti# vi Makefile
------add line--------LIBS-----lssp_nonshared-------------------------------------
LIBS = -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm -lssp_nonshared
-----------------------------end----------------------------------------------------------
cacti# make clean
cacti# make install
ok
cacti# cd /usr/ports/net-mgmt/net-snmp
cacti# more Makefile
----------- - - - - - check
.if ${OSVERSION} >= 800000
CONFIGURE_ARGS+= --wuth-libs="-lssp_nonshared"
---------------------------
cacti# cd /usr/ports/net-mgmt/cacti-spine/work/cacti-spine-0.8.7g/
cacti# vi Makefile
------add line--------LIBS-----lssp_nonshared-------------------------------------
LIBS = -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm -lssp_nonshared
-----------------------------end----------------------------------------------------------
cacti# make clean
cacti# make install
ok
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Cannot find NET-SNMP libraries(snmp)
Please pm this to TheWitness
Thanks
R.
Thanks
R.
Who is online
Users browsing this forum: No registered users and 1 guest