Sample install instructions

manager-1> cat rubysnmp-0.2.0.tgz | tar zxf -
manager-1> cd SNMP
manager-1> ruby extconf.rb
makechecking for ruby.h... yes
checking for ucd-snmp/ucd-snmp-config.h... yes
checking for ucd-snmp/ucd-snmp-includes.h... yes
checking for snmp_sess_init() in -lsnmp... yes
creating Makefile
manager-1>
make
gcc -fPIC -I/usr/local/lib/ruby/1.4/i386-freebsdelf3.3 -g -O2 -DBROKEN_GETNODE -DSNMPV3 -I/usr/local/include -DHAVE_RUBY_H -DHAVE_UCD_SNMP_TOOLS_H -DHAVE_UCD_SNMP_UCD_SNMP_CONFIG_H -DHAVE_UCD_SNMP_UCD_SNMP_INCLUDES_H -c mib.c
In file included from mib.c:7:
/usr/local/include/ucd-snmp/ucd-snmp-includes.h:7: warning: redefinition of `u_int'
/usr/include/sys/types.h:54: warning: `u_int' previously declared here
gcc -fPIC -I/usr/local/lib/ruby/1.4/i386-freebsdelf3.3 -g -O2 -DBROKEN_GETNODE -DSNMPV3 -I/usr/local/include -DHAVE_RUBY_H -DHAVE_UCD_SNMP_TOOLS_H -DHAVE_UCD_SNMP_UCD_SNMP_CONFIG_H -DHAVE_UCD_SNMP_UCD_SNMP_INCLUDES_H -c snmp.c
In file included from snmp.c:9:
/usr/local/include/ucd-snmp/ucd-snmp-includes.h:7: warning: redefinition of `u_int'
/usr/include/sys/types.h:54: warning: `u_int' previously declared here
gcc -fPIC -I/usr/local/lib/ruby/1.4/i386-freebsdelf3.3 -g -O2 -DBROKEN_GETNODE -DSNMPV3 -I/usr/local/include -DHAVE_RUBY_H -DHAVE_UCD_SNMP_TOOLS_H -DHAVE_UCD_SNMP_UCD_SNMP_CONFIG_H -DHAVE_UCD_SNMP_UCD_SNMP_INCLUDES_H -c snmp_sess.c
In file included from snmp_sess.c:13:
/usr/local/include/ucd-snmp/ucd-snmp-includes.h:7: warning: redefinition of `u_int'
/usr/include/sys/types.h:54: warning: `u_int' previously declared here
gcc -shared -Wl,-soname,snmp.so -L/usr/local/lib -o snmp.so mib.o snmp.o snmp_sess.o -lsnmp -lc
manager-1>
su
Password:
#
make install
snmp.so -> /usr/local/lib/ruby/1.4/i386-freebsdelf3.3/snmp.so
chmod 0555 /usr/local/lib/ruby/1.4/i386-freebsdelf3.3/snmp.so
#

User &
Last modified: Sun Jul 2 16:34:48 JST 2000