Discussion:
mib2c installation issue
s***@wipro.com
2008-06-05 12:19:16 UTC
Permalink
Hi
I am using net-snmp-5.2.1 in fedora core 4 linux. I am
following below steps ( based on READMEs).
Login as root user
Extract downloaded Net-SNMP-version 5.2.1 source
package into fresh directory (for instance /tmp/20June/)
go to /tmp/20June/net-snmp-5.2.1
run "./configure"
run "make"
run "make install"
run "cd perl"
run "perl Makefile.PL"
run "make"
run "make install "
While executing mib2c, I am getting "perl module not found".
When I tried "# which perl" command I am getting "/usr/bin/perl".

Please let me know any correction in the installation step/ need
to install some other modules to execute mib2c.
Thanks,
Santhosh
Wes Hardaker
2008-06-06 15:39:27 UTC
Permalink
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.
s***@wipro.com
2008-06-07 03:11:17 UTC
Permalink
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...

=============================================================
[***@2 ~]# 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.

[***@2 ~]# export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib

[***@2 ~]# 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:***@users.sourceforge.net]
Sent: Friday, June 06, 2008 9:09 PM
To: SANTHOSH S (WT01 - TES-Transport Infrastructure)
Cc: net-snmp-***@lists.sourceforge.net
Subject: Re: mib2c installation issue
On Thu, 5 Jun 2008 17:49:16 +0530,
<***@wipro.com> 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.
Loading...