bowei_99 has asked for the wisdom of the Perl Monks concerning the following question:
run fine, with no errors. However, when I cd to the included perl directory (i.e. that comes with the download) and try to docd net-snmp-5.3.1 ./configure --with-perl-modules --enable-shared make make test make install
I get the following errors:/usr/bin/perl Makefile.PL make make test
This is even though the default_store.so file is there: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 shar +ed object file: No such file or directory at /usr/lib/perl5/5.8.5/i38 +6-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
as is the libnetsnmp.so.10 file:[root@burvil default_store]# ls -l ../blib/arch/auto/NetSNMP/default_s +tore/default_store.so -rwxr-xr-x 1 root root 85559 Sep 14 13:54 ../blib/arch/auto/NetSNMP/d +efault_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
and the Makefile that's created with perl Makefile.PL has the settings to look in that directory:[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.1 +0 -> 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
I tried installing anyway, ignoring the errors, and the same errors come up when I use it. Also, I need to this particular SNMP module (I know there are others, like SNMP_session), but the perl app I'm installing (netdisco) specifically requires this one. Also, I get the same message when installing a previous version, net-snmp 5.1.4. I'm running perl 5.8.5, gcc 3.4.5 (see below), and RHEL AS 4 Update 3.LD = gcc LDDLFLAGS = -shared -L/usr/local/lib LDFLAGS = -L/usr/local/lib
Solution: Well, I realized what was wrong. I had installed net-snmp from source on my RHEL AS 4 box, even though it was already installed from rpm. The version from rpm was older. I thought it wouldn't matter, since I specified different directories, but I guess not. I ended up installing netdisco on another system, where I hadn't installed from source, and thus not corrupted the libraries.[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 --disa +ble-checking --with-system-zlib --enable-__cxa_atexit --disable-libun +wind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux Thread model: posix gcc version 3.4.5 20051201 (Red Hat 3.4.5-2)
-- Burvil
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Net::SNMP module make test failing
by duckyd (Hermit) on Sep 14, 2006 at 23:02 UTC | |
by bowei_99 (Friar) on Sep 14, 2006 at 23:22 UTC | |
by duckyd (Hermit) on Sep 14, 2006 at 23:43 UTC | |
by bowei_99 (Friar) on Sep 15, 2006 at 00:52 UTC | |
by duckyd (Hermit) on Sep 15, 2006 at 01:15 UTC |