Unable to find/load jicmp

dtp lists <[email protected]>
Newsgroups gmane.network.opennms.install
Message-ID <[email protected]>
Hello!

I have tried to install OpenNMS on two different machines today, the second
being a fresher than fresh install of CentOS 5.5. I followed each step in
the getting started guide to the letter and am still unable to get
'/opt/opennms/bin/install -dis' to run. It fails at what seems to be the
first step, loading libjimcp.so (see listing 1). I checked that
/usr/lib/libjicmp.so exists, and the RPM is found/installed as well. I have
tried running the install with the '-l /usr/lib/libjicmp.so' option, and it
still fails. I've set LD_LIBRARY_PATH to include /usr/lib to no avail
either. Finally, as a last resort, I tried running jicmp from the command
prompt (as noted on the wiki) and it also fails (listing 3).

I am completely out of ideas, so I'm hoping that someone here will be able
to help.

Both of the attempts were made on i386 (32-bit) machines running the lastest
version of Oracle Java:

[root@dasbox lib]# java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
[root@dasbox lib]# uname -a
Linux dasbox 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:53:09 EST 2011 i686
i686 i386 GNU/Linux

Thanks in advance,

-Dave


LISTING 1:
[root@dasbox lib]# /opt/opennms/bin/install -dis
==============================================================================
OpenNMS Installer
==============================================================================

Configures PostgreSQL tables, users, and other miscellaneous settings.

- searching for jicmp:
  - trying to load /usr/lib/libjicmp.so: NO
  - trying to load /usr/java/jdk1.6.0_24/jre/lib/i386/client/libjicmp.so: NO
  - trying to load /usr/java/jdk1.6.0_24/jre/lib/i386/libjicmp.so: NO
  - trying to load /usr/java/jdk1.6.0_24/jre/../lib/i386/libjicmp.so: NO
  - trying to load /opt/opennms/lib/libjicmp.so: NO
  - trying to load /libjicmp.so: NO
  - trying to load /opt/opennms/lib/linux32/libjicmp.so: NO
  - trying to load /usr/java/packages/lib/i386/libjicmp.so: NO
  - trying to load /lib/libjicmp.so: NO
  - trying to load /usr/lib/libjicmp.so: NO
  - trying to load /usr/lib/jni/libjicmp.so: NO
  - trying to load /usr/lib/libjicmp.so: NO
  - trying to load /usr/local/lib/libjicmp.so: NO
  - trying to load /opt/NMSjicmp/lib/32/libjicmp.so: NO
  - trying to load /opt/NMSjicmp/lib/64/libjicmp.so: NO
Exception in thread "main" java.lang.Exception: Failed to load the required
jicmp library that is required at runtime.  By default, we search the Java
library path: /usr/java/jdk1.6.0_24/jre/lib/i386/client
/usr/java/jdk1.6.0_24/jre/lib/i386 /usr/java/jdk1.6.0_24/jre/../lib/i386
/opt/opennms/lib  /opt/opennms/lib/linux32 /usr/java/packages/lib/i386 /lib
/usr/lib.  For more information, see http://www.opennms.org/index.php/jicmp
        at org.opennms.install.Installer.findLibrary(Installer.java:1066)
        at org.opennms.install.Installer.install(Installer.java:214)
        at org.opennms.install.Installer.main(Installer.java:932)


LISTING 2:
[root@dasbox lib]# ls -al /usr/lib/libjicmp.*
-rwxr-xr-x 1 root root   774 May 25  2010 /usr/lib/libjicmp.la
-rwxr-xr-x 1 root root 43477 May 25  2010 /usr/lib/libjicmp.so
[root@dasbox lib]# rpm -Vv jicmp
........    /usr/lib/libjicmp.la
........    /usr/lib/libjicmp.so
........    /usr/share/java/jicmp.jar

LISTING 3:
[root@dasbox lib]# java -Dopennms.library.jicmp=/usr/lib/libjicmp.so
-classpath opennms-icmp-api-1.8.10.jar:log4j-1.2.15.jar:jicmp-api-1.0.10.jar
org.opennms.netmgt.ping.Ping localhost
[DEBUG] System property 'opennms.library.jicmp' set to
'/usr/lib/libjicmp.so.  Attempting to load jicmp library from this location.
UnsatisfiedLinkError while creating an IcmpSocket.  Most likely failed to
load libjicmp.so.  Try setting the property 'opennms.library.jicmp' to point
at the full path name of the libjicmp.so shared library (e.g. 'java
-Dopennms.library.jicmp=/some/path/libjicmp.so ...')
java.lang.UnsatisfiedLinkError: /usr/lib/libjicmp.so: /usr/lib/libjicmp.so:
ELF file OS ABI invalid
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1803)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1699)
        at java.lang.Runtime.load0(Runtime.java:770)
        at java.lang.System.load(System.java:1003)
        at org.opennms.protocols.icmp.IcmpSocket.<init>(IcmpSocket.java:100)
        at org.opennms.netmgt.ping.Ping.main(Ping.java:121)

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install
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.