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

Subscribe

Subscribe to our e-mail newsletter to receive updates.

2 Responses to “Java JDK Installation Error on Redhat: bad ELF interpreter”

  1. Lee December 19, 2010 at 6:38 pm #

    good..Thank you ^-^

  2. Macs August 21, 2011 at 9:21 pm #

    This is a nice one. I´ve encountered this post several times this week searching for something alike. Now is in my mail box :) Keep up the good work!

Leave a Reply