Well, I went back and
1. Configured Net-SNMP with perl modules.
2. Built it for local host i.e. Redhat Linux and
installed in to a temp directory while perl stuff is
still installed under /usr/lib
3. I set the MIBDIRS and other paths like SNMPCONF,
SNMPSHARE, though I think this shouldn't matter.

Even after all this, I get the error..when I try
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.

I see that there is a SNMP.pm under perl/SNMP
directory. So, I think I am missing something.

When I did make, make test and make install under perl
directory, I get the following error for make test. I
ignored it. May be I shouldn't?

# Running under perl version 5.008 for linux
# Current time local: Tue Jun 21 14:51:03 2005
# Current time GMT:   Tue Jun 21 21:51:03 2005
# Using Test.pm version 1.23
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.0/i386-linux-thread-multi/DynaLoader.pm
line 229.
 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
`****************/*****/net-snmp-5.2.1/perl/OID'
make: *** [test] Error 2

Unless some one can give me more ideas, the only
alternative is to try generating the files using mib2c
on windows platform or code evrything manually myself.

-SP


--- Robert Story <[EMAIL PROTECTED]> wrote:

> On Thu, 16 Jun 2005 00:36:27 -0700 (PDT) Surya
> wrote:
> SP> when I try mib2c -c mib2c...table.conf
> BRIDGE-MIB.txt
> SP> it gives me the following error.
> SP> 
> SP>              ERROR: You don"t have the SNMP perl
> SP> module installed. 
> SP> 
> SP> Now, since I cross compiled for ppc platform, I
> don'
> SP> do make install. Is that a problem?
> 
> Yep. You need net-snmp and its perl modules
> compiled/installed for the host
> that you are going to run mib2c on.
> 
> SP> Should I reconfigure net-snmp with
> --perl-modules??
> 
> that won't help for the cross-compile build.  You
> need a native build. If
> net-snmp is already on the host (via a rpm/package),
> be careful about mixing
> packages and source compiles. They don't mix well.
> 
> -- 
> NOTE: messages sent directly to me, instead of the
> lists, will be deleted
>       unless they are requests for paid consulting
> services.
> 
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/>
> <irc://irc.freenode.net/#net-snmp>
> Archive:
>
<http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
> 
> You are lost in a twisty maze of little standards,
> all different. 
> 
> 
>
-------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux
> Migration Strategies
> from IBM. Find simple to follow Roadmaps,
> straightforward articles,
> informative Webcasts and more! Get everything you
> need to get up to
> speed, fast.
>
http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> Net-snmp-coders mailing list
> [email protected]
>
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to