Install OpenNMS on openSUSE 12.2: Difference between revisions
Jump to navigation
Jump to search
Line 46: | Line 46: | ||
=== Install OpenNMS === | === Install OpenNMS === | ||
'''jdk 1.7 not supported yet (compile errors)''' | '''jdk 1.7 not supported for build yet (compile errors)''' | ||
wget http://sourceforge.net/projects/opennms/files/OpenNMS-Source/stable-1.10.8/opennms-source-1.10.8-1.tar.gz | wget http://sourceforge.net/projects/opennms/files/OpenNMS-Source/stable-1.10.8/opennms-source-1.10.8-1.tar.gz | ||
Line 53: | Line 53: | ||
find . -name *.spec -exec sed -i 's/^BuildRequires/# BuildRequires/' {} \; | find . -name *.spec -exec sed -i 's/^BuildRequires/# BuildRequires/' {} \; | ||
./makerpm.sh | ./makerpm.sh | ||
rpm -ihv target/rpm/RPMS/noarch/*.rpm | |||
Comment out BuildRequires because jdk is not recognized | Comment out BuildRequires because jdk is not recognized | ||
=== First Start of OpenNMS === | |||
cd /opt/opennms | |||
./bin/runjava -s | |||
./bin/install -dis | |||
./bin/opennms start | |||
=== Login === | |||
http://localhost:8980/opennms/ |
Revision as of 18:51, 3 April 2013
Install OpenNMS on OpenSUSE 12.2
Problem is, RPM packages are provided for RHEL/Centos/Fedora, but not Suse. There is also a general installation, so I use this
Install JDK > 1.5
Oracle java is recommended, but I will try openjdk 1.7 since I already have it installed.
# javac -version javac 1.7.0_15
Install Postgres
- There is a postgresql for OpenSUSE, so I will install that one
zypper install postgresql postgresql-server
- Create config files by starting postgres once
rcpostgresql start
- Configure postresql as described on openNMS page
Install iplike
sudo zypper install postgresql-devel rpm-build wget http://sourceforge.net/projects/opennms/files/IPLIKE/stable-2.0/iplike-2.0.3.tar.gz tar xzf iplike-2.0.3.tar.gz cd iplike-2.0.3 ./configure make rpm sudo rpm -ihv ~/rpmbuild/RPMS/x86_64/iplike-2.0.3-1.x86_64.rpm
Install jicmp
wget http://sourceforge.net/projects/opennms/files/JICMP/stable-1.4/jicmp-1.4.0.tar.gz wget http://sourceforge.net/projects/opennms/files/JICMP6/stable-1.2/jicmp6-1.2.0.tar.gz rpmbuild --nodeps -tb --target=x86_64 jicmp-1.4.0.tar.gz rpmbuild --nodeps -tb --target=x86_64 jicmp6-1.2.0.tar.gz sudo rpm -ihv ~/rpmbuild/RPMS/x86_64/jicmp-1.4.0-1.x86_64.rpm ~/rpmbuild/RPMS/x86_64/jicmp6-1.2.0-1.x86_64.rpm
--nodeps required because openjdk is not detected
Install OpenNMS
jdk 1.7 not supported for build yet (compile errors)
wget http://sourceforge.net/projects/opennms/files/OpenNMS-Source/stable-1.10.8/opennms-source-1.10.8-1.tar.gz tar xzf opennms-source-1.10.8-1.tar.gz cd opennms-1.10.8-1 find . -name *.spec -exec sed -i 's/^BuildRequires/# BuildRequires/' {} \; ./makerpm.sh rpm -ihv target/rpm/RPMS/noarch/*.rpm
Comment out BuildRequires because jdk is not recognized
First Start of OpenNMS
cd /opt/opennms ./bin/runjava -s ./bin/install -dis ./bin/opennms start