mib2c not working !!! Help ! (net-snmp-5.2.1.2)

"Makavy, Erez (Erez)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <AAB4B3D3CF0F454F98272CBE187FDE2F0A117662@is0004avexu1.global.avaya.com>
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.s
o' 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: [email protected]
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); [email protected]
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
 

	----- Original Message ----- 
	From: Makavy, Erez (Erez) <mailto:[email protected]>  
	To: [email protected] 
	Sent: Monday, February 13, 2006 1:19 PM
	Subject: Installation problem, mib2c not working
(net-snmp-5.2.1.2)

	After installing net-snmp-5.2.1.2 (configured with
--with-perl-modules),
	I get the usual error, when running mib2c:
	 
	
------------------------------------------------------------------------
------------------------------
	ERROR: You don't have the SNMP perl module installed.  Please
obtain
	this by getting the latest source release of the net-snmp
toolkit from
	http://www.net-snmp.org/download/ .  Once you download the
source and
	unpack it, the perl module is contained in the perl/SNMP
directory.
	See the README file there for instructions.
	
------------------------------------------------------------------------
------------------------------
	 
	It seems that the SNMP perl module was installed, but mib2c does
not find it.
	 
	1) How do I fix it?
	2) Is there a bug in the 'configure'?
	 
	Thanks,
	Erez.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.