Hello,
I have successfully installed netsnmpj-0.2.1 on a Windows XP box and
executed the example program GetSysDesc.java. I've also modified the
example to poll MIBs read in from an XML file, and this also works on XP.
My problem is that I've tried to do the same on a Linux box, and it doesn't
work. I try to run it with the following command:
java -Djava.library.path=/my_home/path/snmp/netsnmpj-0.2.1/linux-i386-classpath
etc... (classpath_stuff main_class)
and I get the following error:
java.lang.UnsatisfiedLinkError:
/home/mbailey/snmp/netsnmpj-0.2.1/linux-i386/libnetsnmpj.so:
libnetsnmp.so.5: cannot open shared object file: No such file or directory
##
## could not find libnetsnmp.so. Please checked your LD_LIBRARY_PATH
setting(unix/linux
## or your PATH setting under MS-Windows. It may also be that
## net-snmp does not appear to be installed. If so, please install net-snmp
5.0.7 or higher
## before proceeding further. See http://net-snmp.sourceforge.net
##
It seems to be looking for libnetsnmp .so's, when the only ones available
are libnetsnmpj .so's.
I have:
unzipped netsnmpj-0.2.1 and net-snmp-5.3.2.rc1 that I downloaded from
sourceforge
installed net-snmp-5.3.2.rc1 using configure as per the instructions in
net-snmp-5.3.2.rc1/INSTALL
included /my_home/path/netsnmpj-0.2.1/linux-i386 in ld.so.conf
copied netsnmpj.jar to JAVA_HOME/jre/lib/ext as per the instructions in
/netsnmpj-0.2.1/INSTALL, but I have not copied the .so libraries to
JAVA_HOME/jre/lib/SYSTEM as this file does not exist in my Java installation
(incidentally, netsnmpj-0.2.1/linux-i386 only contains one .so file -
libnetsnmpj.so)
Info:
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=7.04
DISTRIB_CODENAME=feisty
DISTRIB_DESCRIPTION="Ubuntu 7.04"
Output from ldconfig -v:
/my_home/path/netsnmpj-0.2.1/linux-i386:
libnetsnmpj.so -> libnetsnmpj.so
libnetsnmpj.so.5 -> libnetsnmpj.so.5
Please help!!!!
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users