Please HELP !
I
still can't make mib2c work, it's something with the
"DynaLoader.pm".
1)
when I run mib2c I get the usual "ERROR: You don't
have the SNMP perl module installed ", but it IS
installed !!!
2) I
added a perl print line to see why it fails:
----------------------
if
(!$havesnmp) {
print "Failed to load, because :
$@";
----------------------
and I get the same error that the
'make test' gave me:
-----------------------------------
Failed to load, because :
Can't load
'/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SNMP/SNMP.so' for
module SNMP:
/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/SNMP/SNMP.so:
**************************************************************************************
undefined symbol: usmAESPrivProtocol at
/usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line
230.
************************************************************************************** --------------------------
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Makavy, Erez (Erez) Sent: Monday, February 13, 2006 9:38 PM To: net-snmp-users@lists.sourceforge.net Cc: jdx Subject: RE: Installation problem, mib2c not working (net-snmp-5.2.1.2) More
info about my problem:
----------------------------------------
1) I'm
using RedHat Linux 2.6.9
2) My
configure was run as follows:
./configure
--with-libwrap
\
--with-perl-modules \ --with-mib-modules="agentx" \ --prefix="/usr/local/net-snmp-5.2.1.2" \ --program-suffix="_5.2.1.2" \ --with-persistent-directory="/var/net-snmp-5.2.1.2" \ --with-sys-location="def-location" \ --with-sys-contact="no-contact" \ --with-default-snmp-version="1" \ --with-logfile="/var/log/snmpd-5.2.1.2.log" 3)
'Make install' when well without errors.
4)
mib2c didn't work, shown the "ERROR: You don't have the SNMP perl module
installed"
5) I
also tried to manually installed the perl modules:
- cd
perl
- perl
Makefile.PL
-
make
- make test
FAILS with this error:
---------------------------------------------------------
#
Running under perl version 5.008005 for linux
# Current time local: Mon Feb 13 21:32:16 2006 # Current time GMT: Mon Feb 13 19:32:16 2006 # Using Test.pm version 1.25 Can't load '../blib/arch/auto/SNMP/SNMP.so' for module SNMP: ../blib/arch/auto/SNMP/SNMP.so: undefined symbol: usmAESPrivProtocol at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230. at ../blib/lib/NetSNMP/OID.pm line 19 Compilation failed in require at ../blib/lib/NetSNMP/OID.pm line 19. BEGIN failed--compilation aborted at ../blib/lib/NetSNMP/OID.pm line 19. Compilation failed in require at test.pl line 10. BEGIN failed--compilation aborted at test.pl line 10. make[1]: *** [test_dynamic] Error 255 make[1]: Leaving directory `/root/Net-SNMP/net-snmp-5.2.1.2/perl/OID' make: *** [test] Error 2 -----------------------------------------------------------
Questions:
---------------
1)
Could it be that it doesn't work becuase I changed the prefix (
--prefix="/usr/local/net-snmp-5.2.1.2" )?
I'll try and remove the --prefix
directive.
2) Any
other solutions? (I would like to install it to a different
prefix!)
Thank,
Erez.
From: jdx [mailto:[EMAIL PROTECTED] Sent: Monday, February 13, 2006 3:54 PM To: Makavy, Erez (Erez); net-snmp-users@lists.sourceforge.net Subject: Re: Installation problem, mib2c not working (net-snmp-5.2.1.2) Hi,
You have already got many messages, but I don't
keep your configuration in mind.
For mine (one Linux , other Win32) I had to install
manually the Net-SNMP.ppd (found in /usr/perl)
I found the information in some
README... so I just could advertize you to
RTFM (Read The Fucky
Manual)
Bye
|