Java JDK Installation Error on Redhat: bad ELF interpreter

Problem:

You receive the following eror when attempting to install the Java JDK from the sun website on RedHat:

/jdk-6u21-linux-i586-rpm.bin: ./install.sfx.29746: /lib/ld-linux.so.2:
bad ELF interpreter: No such file or directory

Solution:

The fix for me was  to use the 64bit version of the JDK installer. You can determine if you are on 32bit or 64bit by running:

uname -a

If you get something like this, you likely are trying to install the 32bit version like I was:

Linux servername 2.6.18-164.15.1.el5xen #1 SMP Mon Mar 1 11:11:42 EST 2010
 x86_64 x86_64 x86_64 GNU/Linux

Sidenote - You can find the latest Java JDK here:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

If this article has been helpful, please consider linking to it or commenting.

Bookmark and Share

Post Author

This post was written by iainlbc who has written 13 posts on iainlbc.

No comments yet.

Leave a Reply