Thanks Wes Hardaker for the response,

I have tried configure with --with-perl-modules, but after make install
I got the same error.

But when I set LD_LIBRARY_PATH variable to "/usr/local/lib:/usr/lib", I
am able to execute mib2c successfully. Even if I open new console from
same machine, before setting LD_LIBRARY_PATH I am *not* able to run
mib2c. Below is the command flow...

=============================================================
[EMAIL PROTECTED] ~]# 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.

[EMAIL PROTECTED] ~]# export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib

 [EMAIL PROTECTED] ~]# mib2c -c mib2c.scalar.conf myScalar
writing to myScalar.h
writing to myScalar.c
running indent on myScalar.h
running indent on myScalar.c
=============================================================

Please let me know what could be the issue? Is it Linux installation?

Thanks & Regards, 
Santhosh 

-----Original Message-----
From: Wes Hardaker [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 06, 2008 9:09 PM
To: SANTHOSH S (WT01 - TES-Transport Infrastructure)
Cc: [email protected]
Subject: Re: mib2c installation issue

>>>>> On Thu, 5 Jun 2008 17:49:16 +0530,
<[EMAIL PROTECTED]> said:

ss> I am using net-snmp-5.2.1 in fedora core 4 linux. 

I'd suggest updating to 5.4.1 instead, personally.

ss> While executing mib2c, I am getting "perl module not found".
ss> When I tried "# which perl" command I am getting "/usr/bin/perl".

Run configure with --with-perl-modules when you compile Net-SNMP.  Or to
avoid recompiling:

  cd net-snmp-5.2.1/pel
  perl Makefile.PL
  make
  sudo make install
-- 
Wes Hardaker
Sparta, Inc.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to