LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-08-2011, 08:57 AM   #1
ramecare
Member
 
Registered: Feb 2011
Posts: 176

Rep: Reputation: 0
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

Last edited by ramecare; 07-08-2011 at 09:04 AM.
 
Old 07-08-2011, 10:42 AM   #2
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,123

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by ramecare View Post
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?
 
Old 07-11-2011, 09:21 AM   #3
saiju@wavecrest.gi
LQ Newbie
 
Registered: Jul 2011
Location: India
Distribution: Rhel,CentOS,Ubuntu
Posts: 11

Rep: Reputation: Disabled
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
 
Old 07-11-2011, 09:36 AM   #4
TB0ne
Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 14,123

Rep: Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456Reputation: 2456
Quote:
Originally Posted by saiju@wavecrest.gi View Post
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?
 
Old 07-11-2011, 12:06 PM   #5
saiju@wavecrest.gi
LQ Newbie
 
Registered: Jul 2011
Location: India
Distribution: Rhel,CentOS,Ubuntu
Posts: 11

Rep: Reputation: Disabled
Red face

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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opennms installation error -install –disU –l /usr/lib/jni:/usr/lib ramecare Linux - Server 2 07-08-2011 10:51 AM
oops, I stripped /usr/lib and /usr/X11R6/lib ! H_TeXMeX_H Slackware 2 02-08-2007 09:27 PM
Debian install error /usr/lib/debootstrap/pkgdetails GT_Onizuka Debian 0 11-01-2005 01:11 AM
Starting httpd: /usr/sbin/httpd: symbol lookup error: /usr/local/lib/libaprutil-0.so. bijuhpd Linux - Newbie 1 10-30-2005 05:07 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM


All times are GMT -5. The time now is 11:22 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration