cd net-snmp-5.3.1
./configure --with-perl-modules --enable-shared
make
make test
make install
####
/usr/bin/perl Makefile.PL
make
make test
##
##
PERL_DL_NONLAZY=1 /usr/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
1..64
Can't load '../blib/arch/auto/NetSNMP/default_store/default_store.so' for module NetSNMP::default_store: libnetsnmp.so.10: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230.
at test.pl line 71
Compilation failed in require at test.pl line 71.
BEGIN failed--compilation aborted at test.pl line 71.
not ok 1
make[1]: *** [test_dynamic] Error 255
make[1]: Leaving directory `/root/netdisco/net-snmp-5.3.1/perl/default_store'
make: *** [test] Error 2
##
##
[root@burvil default_store]# ls -l ../blib/arch/auto/NetSNMP/default_store/default_store.so
-rwxr-xr-x 1 root root 85559 Sep 14 13:54 ../blib/arch/auto/NetSNMP/default_store/default_store.so
You have new mail in /var/spool/mail/root
[root@burvil default_store]# pwd
/root/netdisco/net-snmp-5.3.1/perl/default_store
##
##
[root@burvil perl]# ls -l /usr/local/lib/libnetsnmp.so.10
lrwxrwxrwx 1 root root 20 Sep 13 20:06 /usr/local/lib/libnetsnmp.so.10 -> libnetsnmp.so.10.0.1
[root@burvil perl]# ls -l /usr/local/lib/libnetsnmp.so.10.0.1
-rwxr-xr-x 1 root root 1237224 Sep 13 20:06 /usr/local/lib/libnetsnmp.so.10.0.1
##
##
LD = gcc
LDDLFLAGS = -shared -L/usr/local/lib
LDFLAGS = -L/usr/local/lib
##
##
[root@burvil perl]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.5/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)