Re: Unable to find/load jicmp
dtp lists <[email protected]>
| Newsgroups | gmane.network.opennms.install |
|---|---|
| Message-ID | <[email protected]> |
Yep, I had done that as well. Still no joy.
[root@dasbox ~]# /opt/opennms/bin/runjava -s
runjava: Looking for an appropriate JRE...
runjava: Checking for an appropriate JRE in JAVA_HOME...
runjava: skipping... JAVA_HOME not set
runjava: Checking JRE in user's path: "/usr/bin/java"...
runjava: found an appropriate JRE in user's path: "/usr/bin/java"
runjava: value of "/usr/bin/java" stored in configuration file
[root@dasbox ~]# /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 /libjicmp.so: NO
- trying to load /opt/opennms/lib/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)
On Wed, Mar 23, 2011 at 10:04 AM, Rahul Rozekar
<[email protected]>wrote:
> Hi Dave,
>
>
>
> Please run
>
> Step 1: */opt/opennms/bin/runjava –s*
>
>
>
> Step 2: /opt/opennms/bin/install –dis
>
>
>
> This should solve your issue.**
>
>
>
> Regards,
>
> Rahul Rozekar
>
>
>
> *From:* dtp lists [mailto:[email protected]]
> *Sent:* Wednesday, March 23, 2011 6:55 PM
> *To:* Installation questions and help
> *Subject:* Re: [opennms-install] Unable to find/load jicmp
>
>
>
> Rahul,
>
> Thanks for your message. All of the steps you listed below completed
> without issue for me on both machines. The problem I'm having occurs after
> your 10th step. This is where I'm failing:
> http://www.opennms.org/wiki/Installation:Yum#Running_the_OpenNMS_Installer
>
> Thank you,
>
> -Dave
>
> On Wed, Mar 23, 2011 at 1:19 AM, Rahul Rozekar <
> [email protected]> wrote:
>
> Hi,
>
>
>
> I have done the installation using below steps without any issues.
>
> Please find below steps and do the installation, please let me know in case
> of any error.
>
>
>
> OpenNMS Installation steps:
>
> 1. Install the Operating System.
>
> 2. cd /usr/local/src/
>
> 3. rpm -Uvh
> http://yum.opennms.org/repofiles/opennms-repo-stable-fc13.noarch.rpm
>
> 4. Install postgresql
>
> 5. Rpm –ivh postgresql-8.1.4-1.1.i386.rpm
>
> 6. Rpm –ivh postgresql-server-8.1.4-1.1.i386.rpm
>
> 7. Edit /var/lib/pgsql/data/pg_hba.conf
>
> By default *pg_hba.conf* should have entries similar to the following at
> the bottom of the file:
>
> local all all ident sameuser
>
> host all all 127.0.0.1/32 ident sameuser
>
> host all all ::1/128 ident sameuser
>
> You will need to change these entries to resemble the following:
>
> local all all trust
>
> host all all 127.0.0.1/32 trust
>
> host all all ::1/128 trust
>
> 8. listen_addresses = 'localhost' and max_connections = 60 set these
> values by editing /var/lib/pgsql/data/postgresql.conf
>
> 9. yum install jdk
>
> 10.yum install opennms
>
>
>
>
>
> Regards,
>
> Rahul Rozekar
>
>
>
> *From:* dtp lists [mailto:[email protected]]
> *Sent:* Wednesday, March 23, 2011 8:00 AM
> *To:* [email protected]
> *Subject:* [opennms-install] Unable to find/load jicmp
>
>
>
> 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
>
>
>
>
> ------------------------------------------------------------------------------
> 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
>
------------------------------------------------------------------------------
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