LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   OPENNMS INSTALLATION ERROR -install –disU –l /usr/lib/jni:/usr/lib (https://www.linuxquestions.org/questions/linux-server-73/opennms-installation-error-install-%96disu-%96l-usr-lib-jni-usr-lib-890590/)

ramecare 07-08-2011 08:57 AM

OPENNMS INSTALLATION ERROR -install –disU –l /usr/lib/jni:/usr/lib
 
Dear sir,

i had installed opennms in linux serveri had error during installation of following command i followe the installation method in following link
http://www.opennms.org/wiki/OpenNMS_..._Fedora_Core_6.
i had installed opennms package ,java,postgresql package
im repeatly getting error during exe of the following command

install –disU –l /usr/lib/jni:/usr/lib.can somebody can help me to resolve the conflict


SNAPSHOT OF ERROR : I GOT:

==============================================================================
OpenNMS Installer Version $Id: Installer.java 7383 2007-09-07 22:14:34Z rangerrick $
==============================================================================

Configures PostgreSQL tables, users, and other miscellaneous settings.





ERROR I GOT DURING INSTALLATION:


searching for jicmp:
- trying to load /usr/lib/jni/libjicmp.so: NO
- trying to load /usr/lib/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/lib/i386/server/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/lib/i386/libjicmp.so: NO
- trying to load /opt/apps/java/jdk1.6.0_25/jre/../lib/i386/libjicmp.so: NO
- trying to load /libjicmp.so: NO
- trying to load /opt/opennms/lib/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
Failed to load the jicmp library.
It is required at runtime. By default, we search the java library path:
/opt/apps/java/jdk1.6.0_25/jre/lib/i386/server
/opt/apps/java/jdk1.6.0_25/jre/lib/i386
/opt/apps/java/jdk1.6.0_25/jre/../lib/i386

/opt/opennms/lib
/usr/java/packages/lib/i386
/lib
/usr/lib

For more information, see http://www.opennms.org/index.php/jicmp

Exception in thread "main" java.lang.Exception: A fatal error occurred, exiting installer.
at org.opennms.install.Installer.findLibrary(Installer.java:853)
at org.opennms.install.Installer.install(Installer.java:159)
at org.opennms.install.Installer.main(Installer.java:771)



INSTLLATIONPROCEDURE I FOLLOWED

# cd /root
# chmod +x jdk-1_5_0_12-linux-i586-rpm.bin
# ./ jdk-1_5_0_12-linux-i586-rpm.bin then accept . this will automatically extract the rpm and install java to the folder /usr/java/jdk1.5.0_12/
# cd /usr/bin
#

Setup Environment variable for java home. Insert the following entries in /etc/profile

# vi /etc/profile

add the following entries

JAVA_HOME="/opt/apps/java/jdk1.6.0_25"

save and exit (!wq)

Then run the following command to commit this

# source /etc/profile
# echo $ JAVA_HOME , it should display
/usr/java/jdk1.5.0_12

Now java is installed. Proceed to configure postgres

3. Install and configure postgresql

Check whether postgres is installed.
# cd /root
# rpm –qa | grep postgres – It should display

postgresql-libs-8.1.4-1.1
postgresql-server-8.1.4-1.1
postgresql-8.1.4-1.1
postgresql-python-8.1.4-1.1

If not, do install postgres. Once installed you can configure now

# cd /root
# /etc/init.d/postgresql start
Starting postgresql service: [ OK ]
# cd /var/lib/pgsql/data/
# cp pg_hba.conf pg_hba.conf.org
# vi pg_hba.conf

uncomment the following lines

local all all ident sameuser
host all all 127.0.0.1/32 ident sameuser
host all all ::1/128 ident sameuser


and add the following entries :

local all all trust
host all all 127.0.0.1/32 trust
host all all ::1/128 trust

then save and exit

# cp postgresql.conf postgresql.conf.org
# vi postgresql.conf

and uncomment the line

listen_addresses = 'localhost'

save and exit

# /etc/init.d/postgresql stop
# /etc/init.d/postgresql start

Now postgresql is ready to use for opennms.

4. Install jicmp

Download jicmp-1.0-1_fc6.i386.rpm from http://downloads.sourceforge.net/ope..._fc6.i386.rpm? modtime=1185807521&big_mirror=0 ,and save to /root.
# cd /root
# rpm –ivh jicmp-1.0-1_fc6.i386.rpm

This will get jicmp rpm.

5. Install Opennms-core

Download the opennms-core from http://downloads.sourceforge.net/ope...-1.noarch.rpm? modtime=1189773547&big_mirror=0 and save to /root
# cd /root
# rpm –ivh opennms-core-1.3.7-1.noarch.rpm

6. Install OpenNMS-webapp

Download OpenNMS-webapp-jetty from http://downloads.sourceforge.net/ope...p-jetty-1.3.7- .noarch.rpm?modtime=1189773564&big_mirror=0 and save to /root

# cd /root
# rpm –ivh opennms-webapp-jetty-1.3.7-1.noarch.rpm

7. Install OpenNMS

Download OpenNMS from http://downloads.sourceforge.net/ope...-1.noarch.rpm? modtime=1189773547&big_mirror=0 and save to /root

# cd /root
# rpm –ivh opennms-1.3.7-1.noarch.rpm

8. Install OpenNMS-doc

Download OpenNMS-doc from http://downloads.sourceforge.net/ope...6&big_mirror=0 and save to /root

# cd /root
# rpm –ivh opennms-docs-1.3.7-1.noarch.rpm


9. Configuring OpenNMS

# cd /opt/opennms/bin

# echo $JAVA_HOME

/usr/java/jdk1.5.0_12

# ./runjava –s
runjava: Looking for an appropriate JRE...
runjava: Checking for an appropriate JRE in JAVA_HOME...
runjava: found: "/usr/java/jdk1.5.0_12/bin/java" is an appropriate JRE
runjava: value of "/usr/java/jdk1.5.0_12/bin/java" stored in configuration file

# install –disU –l /usr/lib/jni:/usr/lib

This will install opennms and ready to use.

10. Configure Discovery

# cd /opt/opennms/etc
# cp /etc/discovery-configuration.xml /etc/discovery-configuration.xml.org
# vi /etc/discovery-configuration.xml

and change the network range as per your requirement (10.0.0.1 and 10.0.0.254)



saravanakumar
linux administrator

TB0ne 07-08-2011 10:42 AM

Quote:

Originally Posted by ramecare (Post 4408796)
Dear sir,
i had installed opennms in linux serveri had error during installation of following command i followe the installation method in following link
http://www.opennms.org/wiki/OpenNMS_..._Fedora_Core_6.
i had installed opennms package ,java,postgresql package im repeatly getting error during exe of the following command

install –disU –l /usr/lib/jni:/usr/lib.can somebody can help me to resolve the conflict

SNAPSHOT OF ERROR : I GOT:
searching for jicmp:
Failed to load the jicmp library.

For more information, see http://www.opennms.org/index.php/jicmp

First, if you're really using Fedora Core 6, you're starting off badly. The latest is 15...you are YEARS off of support/patches/updates, so if you're planning on putting anything into production, you should get a current OS on your system.

Second, the error seems plain...the jicmp libraries aren't being found. From the web links that you posted, there is a page on the OpenNMS site that has jicmp..did you download it from there? Did you read the instructions about how to do the installation via Yum, and adding their repository? How did you install jicmp? Since you modified your JAVA_HOME variable, you did remember to log out/back in so it took effect, right?

saiju@wavecrest.gi 07-11-2011 09:21 AM

Try with this yum method to install.
 
Try with this method to install opennms.....


http://www.opennms.org/wiki/Installation:Yum


& install iplike with tar.gz

http://www.opennms.org/wiki/IPLIKE

Let me know if any more help required

Thanks & regds
Saiju

TB0ne 07-11-2011 09:36 AM

Quote:

Originally Posted by saiju@wavecrest.gi (Post 4411624)
Try with this method to install opennms.....
http://www.opennms.org/wiki/Installation:Yum

& install iplike with tar.gz

http://www.opennms.org/wiki/IPLIKE
Let me know if any more help required

Those are the SAME SITES the OP originally posted...how is that going to help?

saiju@wavecrest.gi 07-11-2011 12:06 PM

Hi Tbone,

I ve recently installed opennms, with the Yum installation method and its working fine for me....,
The user was facing issue during installation....
so i gave the link....

Regds
Saiju


All times are GMT -5. The time now is 07:36 PM.