“/lib/ld-linux.so.2: bad ELF interpreter:” Error

Ok so this is the first time that I’ve encountered this error on a fresh vanilla install of Fedora 10 (I’m not going to upgrade to 11 just yet since I’m going to wait for CentOS 6 which is essentially Fedora 10 in the future). I was trying to run hldsupdatetool.bin and it gave me that error. Now nearly every binary depends on glibc, the question is do they depend on the 32-bit or 64-bit version of it. I did a yum install glibc and what came up was that I had the 64-bit version of glibc (duh, x86_64 F10). So the only thing I did was install the 32-bit version of glibc and now everything is back to normal (until more problems arise).

Tags:

21 Responses to ““/lib/ld-linux.so.2: bad ELF interpreter:” Error”

  1. Petey Wheatstraw says:

    Hello, can you tell me how you installed the 32-bit version of glibc?
    I’m not sure what repo it’s in or what the package name is (nor how to search for it, bit of a n00b). This is the same issue preventing me from setting up a dedicated Steam game server :)

  2. Baskar raju says:

    Try this!!
    [root@localhost Downloads]# yum install ld-linux.so.2
    Loaded plugins: presto, refresh-packagekit
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package glibc.i686 0:2.11.1-1 set to be updated
    –> Processing Dependency: libfreebl3.so for package: glibc-2.11.1-1.i686
    –> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2.11.1-1.i686
    –> Running transaction check
    —> Package nss-softokn-freebl.i686 0:3.12.4-10.fc12 set to be updated
    –> Finished Dependency Resolution

    Dependencies Resolved

    =================================================================================================================================================================================
    Package Arch Version Repository Size
    =================================================================================================================================================================================
    Installing:
    glibc i686 2.11.1-1 updates 4.3 M
    Installing for dependencies:
    nss-softokn-freebl i686 3.12.4-10.fc12 fedora 104 k

    Transaction Summary
    =================================================================================================================================================================================
    Install 2 Package(s)
    Upgrade 0 Package(s)

    Total download size: 4.4 M
    Is this ok [y/N]: y
    Downloading Packages:
    Setting up and reading Presto delta metadata
    Processing delta metadata
    Package(s) data still to download: 4.4 M
    (1/2): glibc-2.11.1-1.i686.rpm | 4.3 MB 02:30
    (2/2): nss-softokn-freebl-3.12.4-10.fc12.i686.rpm | 104 kB 00:03
    ———————————————————————————————————————————————————————————
    Total 29 kB/s | 4.4 MB 02:35
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : nss-softokn-freebl-3.12.4-10.fc12.i686 1/2
    Installing : glibc-2.11.1-1.i686 2/2

    Installed:
    glibc.i686 0:2.11.1-1

    Dependency Installed:
    nss-softokn-freebl.i686 0:3.12.4-10.fc12

    Complete!

  3. Luis says:

    I had this issue, myself, on Friday on a Fedora 12 fresh install and the above worked perfectly. It feels obvious now, but when you’re in the thick of things it’s often hard to step back and think straight. Thanks, again!

  4. Bryan says:

    Baskar’s solution worked perfectly for fixing my FC11 install.

  5. Guido says:

    Very helpful. Thank you!

  6. [...] Ставили сервак под «мелочью» CentOS  – – – начала ругаться “/lib/ld-linux.so.2: bad ELF interpreter:” Error что-то там,. Я поискал мануал и наткнулся на камент с такой-же багой *хвала и почести тому человеку* http://rodoabad.joinpgn.com/2009/06/23/libld-linux-so-2-bad-elf-interpreter-error/comment-page-1/#co... [...]

  7. Sniperuga says:

    Присоединяюсь к Lego “*хвала и почести тому человеку*”!!! Thanks!

  8. Mathan says:

    Hi Baskar raju,

    It was really helpful. Thanks dude.

  9. Baskar’s solution worked to fix the identical problem on Fedora 15 when trying to install Plex Media Server.

    Thanks!!!

  10. Raja says:

    Bhaskar’s solution also works on RHEL6,

    i had the same issue on RHEL6 server while installing a monitoring tool..
    i followed Bhaskar’s idea…and it works..

    thanks!!!

  11. PC says:

    @Baskar Good tip … works on CentOS too :)

  12. Sarah says:

    Baskar’s advice worked for me too, on RHEL 6.0, however you have to run the command by root user.

  13. luk says:

    Thanks it worked on Fedora 15

  14. CleanSweep says:

    worked on CentOS 6.0 as well….

  15. Alvaro Fernandez says:

    Hi,

    I’ve tried following this advice on Red Hat Enterprise 6.1, but this is what I get:

    [root@rhe61-wg ~]# yum install ld-linux.so.2
    Loaded plugins: product-id, refresh-packagekit, subscription-manager
    Updating Red Hat repositories.
    Setting up Install Process
    No package ld-linux.so.2 available.
    Error: Nothing to do
    [root@rhe61-wg ~]#

    I have seen the yum update work on Fedora, which makes this very surprising to me. Any ideas?

  16. kshitij mali says:

    [root@rhel6 ~]# sqlplus ‘sys/redhat@//localhost/XE as sysdba’

    SQL*Plus: Release 11.2.0.2.0 Production on Tue Nov 29 00:57:50 2011

    Copyright (c) 1982, 2010, Oracle. All rights reserved.

    ERROR:
    ORA-12514: TNS:listener does not currently know of service requested in connect
    descriptor

    please help for further more error, please reply to below email id
    [email protected]

  17. Pankaj says:

    Thanks alot …
    Worked for me…

  18. wakoko says:

    Baskar raju’s solution works. Thanks.. keep it up

  19. Wonderful goods from you, man. I have take note your stuff previous to and you’re simply extremely great. I really like what you’ve received right here, really like what you are saying and the best way during which you assert it. You are making it enjoyable and you still care for to stay it smart. I can’t wait to read far more from you. That is really a wonderful website.

  20. Rajeev says:

    Hi, I tried this
    yum install glibc.i686 –skip-broken

    but i keep getting the below error

    Loaded plugins: product-id, refresh-packagekit, subscription-manager
    Updating Red Hat repositories.
    ftp://ftp.redhat.com/pub/redhat/linux/beta/6Server/x86_64/os/repodata/repomd.xml : [Errno 14] PYCURL ERROR 6 – “Couldn’t resolve host ‘ftp.redhat.com’”
    Trying other mirror.
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package glibc.i686 0:2.11.1-1.10.el6 will be installed
    –> Processing Dependency: glibc-common = 2.11.1-1.10.el6 for package: glibc-2.1 1.1-1.10.el6.i686
    –> Processing Dependency: libfreebl3.so for package: glibc-2.11.1-1.10.el6.i686
    –> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2 .11.1-1.10.el6.i686
    –> Running transaction check
    —> Package glibc-common.i686 0:2.11.1-1.10.el6 will be installed
    —> Package nss-softokn-freebl.i686 0:3.12.4-11.el6 will be installed
    –> Finished Dependency Resolution
    Error: Protected multilib versions: glibc-2.11.1-1.10.el6.i686 != glibc-2.12-1.2 5.el6.x86_64
    Error: Protected multilib versions: nss-softokn-freebl-3.12.4-11.el6.i686 != nss -softokn-freebl-3.12.9-3.el6.x86_64
    Error: Protected multilib versions: glibc-common-2.11.1-1.10.el6.i686 != glibc-c ommon-2.12-1.25.el6.x86_64
    You could try running: rpm -Va –nofiles –nodigest

    can u help..??

  21. Jon says:

    Guys, isn’t this problem because you’re trying to run a 32-bit Eclipse on a 64-bit Linux?

Leave a Reply