cancel
Showing results for 
Search instead for 
Did you mean: 

installing java on Linux Red Hat 6

Former Member
0 Kudos

Hello!

I still train on a test system RHEL6 x86_64bit.

Please help with java.

I'm installing a package IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64.rpm and get the error:


[root@sapserver home]# rpm -ivh IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64.rpm
error: Failed dependencies:
        libstdc++.so.5 is needed by IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64
        libXp.so.6 is needed by IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64

I check the packages:


[root@sapserver Packages]# rpm -ivh libstdc++-4.4.5-6.el6.x86_64.rpm
warning: libstdc++-4.4.5-6.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
        package libstdc++-4.4.5-6.el6.x86_64 is already installed

[root@sapserver Packages]# rpm -ivh libXp-1.0.0-15.1.el6.x86_64.rpm
warning: libXp-1.0.0-15.1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing...                ########################################### [100%]
        package libXp-1.0.0-15.1.el6.x86_64 is already installed

Still, Java requires these libraries:


[root@sapserver home]# rpm -ivh IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64.rpm
error: Failed dependencies:
        libstdc++.so.5 is needed by IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64
        libXp.so.6 is needed by IBMJava2-AMD64-142-JRE-1.4.2-13.10.x86_64

But when I check the libraries command locate:


[root@sapserver home]# locate libstdc++.so.5
/usr/lib64/libstdc++.so.5
/usr/lib64/libstdc++.so.5.0.7
[root@sapserver home]# locate libXp.so.6
/usr/lib64/libXp.so.6
/usr/lib64/libXp.so.6.2.0

please help me install java

Accepted Solutions (1)

Accepted Solutions (1)

hannes_kuehnemund
Active Contributor
0 Kudos

Dmitry,

the 64-bit IBM Java SDK package curiously needs the libstdc++ and libXp libraries in 32-bit as well. Also, libstdc+5 is provided via compat-libstdc+ package and not the libstdc++ package. Please consider this as well.

Also, please note that Red Hat is providing the package as well. Using the Red Hat version, you also get support for JDK issues. When installing the IBM JDK stand alone, you need to buy JDK support from IBM. Please check SAP note [1172419|https://service.sap.com/sap/support/notes/1172419] for details.

Best, Hannes

Answers (2)

Answers (2)

matias55
Explorer
0 Kudos

In Red Hat Enterprise Linux 6.5 x86_64

Install the followings rpms

rpm -ivh compat-libstdc++-33-3.2.3-69.el6.x86_64.rpm

rpm -ivh libgcc-4.4.7-4.el6.x86_64.rpm

rpm -ivh libstdc++-4.4.7-4.el6.x86_64.rpm

rpm -ivh libX11-1.5.0-4.el6.x86_64.rpm

rpm -ivh libXau-1.0.6-4.el6.x86_64.rpm

rpm -ivh libXpm-3.5.10-2.el6.x86_64.rpm

rpm -ivh compat-libstdc++-33-3.2.3-69.el6.i686.rpm

rpm -ivh libXau-1.0.6-4.el6.i686.rpm

rpm -ivh libxcb-1.8.1-1.el6.i686.rpm

rpm -ivh libX11-1.5.0-4.el6.i686.rpm

rpm -ivh libXext-1.3.1-2.el6.i686.rpm

rpm -ivh libXp-1.0.0-15.1.el6.i686.rpm

Now install IBMJava2 SDK or JRE

rpm -ivh IBMJava2-AMD64-142-SDK-1.4.2-13.18.x86_64.rpm

Add export JAVA_HOME=/opt/IMBJava2-amd62-142/ in  /etc/profile


Note that some files are from x86.

Former Member
0 Kudos

Hi,

If you have active subscription, try installing using yum.

# yum install libXp compat-libstdc++
then
# yum install IBMJava2-AMD64-142-JRE-1.4.2-13

Regards.

Rajesh Narkhede.

Former Member
0 Kudos

Thanks for the answer, but i have not got an active subscription. Promise for a month. And I can not wait. In order not to lose time, I want to practice on a test system.