lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 13 of 13
  1. #1
    Join Date
    Aug 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    i got this error in fedora 13 64 bit lib/ld-linux.so.2: bad ELF interpreter: No such file or directory.how can i fix it?

  2. #2
    Join Date
    Jan 2008
    Location
    /dev/darkness
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Quote Originally Posted by sercsai
    i got this error in fedora 13 64 bit lib/ld-linux.so.2: bad ELF interpreter: No such file or directory.how can i fix it?
    Whatever program it is you are running requires 32bit libraries. In this case the file you need is in the package glibc.i686.

    If you use yum an even easier way to fix 32bit issues like this (other programs or even the one you are running may have problems with other files missing) is to use "yum install fle_to_install" (e.g. "yum install lib/ld-linux.so.2"). Yum will then look for any package containing that file and offer to install it.
    F15 x86_64 - AMD FX60 - 4GB DDR - 4x 1TB RAID0 - 2x 9800GX2
    F15 x86_64 - AMD64 X2 3800+ - 1GB DDR - 2x 750GB - 7800GT
    OOKernel OS - AG2 GCU - 32TB ARAM - 1TB PRAM - AG1 TCU

  3. #3
    Join Date
    Jan 2009
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    thanks for the help.

    I was wondering though about using yum install to install things I've downloaded from internet. For example: I've downloaded a Dwarf Fortress game and it came in .tar.bz2 file. Do I first decompress it and then run the yum install on the main file, or to do it on the compressed file (whatever the extension it be)?

    Thanks for the help.

  4. #4
    Join Date
    Mar 2011
    Location
    /
    Posts
    5,259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    I would imagine yum on the compressed file might not work. I would suggest decompressing the file and see what file needs to be installed.

  5. #5
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    If the file is a .tar.b2z file then wouldn't you need to ./configure ; make ; make install ???

  6. #6
    Join Date
    Mar 2011
    Location
    /
    Posts
    5,259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Quote Originally Posted by glennzo
    If the file is a .tar.b2z file then wouldn't you need to ./configure ; make ; make install ???
    That has been my experience as of now. I have not come across using yum directly on a tar file yet ...

  7. #7
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    I've downloaded the game in the tar.b2z file and have extracted it. In the newly created folder I see no .configure file and nothing in any of the text files tells me what to do with this game. The web site ... The forum wasn't working too well when I visited.

  8. #8
    Join Date
    Mar 2004
    Location
    In your closet
    Posts
    16,117
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Do you have redhat-lsb installed?

    rpm -qa | grep redhat-lsb

  9. #9
    Join Date
    Mar 2011
    Location
    /
    Posts
    5,259
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Nope. I do not have redhat-lsb installed.

    I managed to get the game running actually. I installed all the required libraries and executed the program 'df' to start the game. It did give some errors, mostly, about not being able to find some theme engines. One example is below,

    (Dwarf_Fortress:8454): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks"

  10. #10
    Join Date
    Apr 2013
    Location
    Miller Lake, ON
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Quote Originally Posted by John5342
    Whatever program it is you are running requires 32bit libraries. In this case the file you need is in the package glibc.i686.

    If you use yum an even easier way to fix 32bit issues like this (other programs or even the one you are running may have problems with other files missing) is to use "yum install fle_to_install" (e.g. "yum install lib/ld-linux.so.2"). Yum will then look for any package containing that file and offer to install it.
    Hi,
    New to the forum. This post pretty much describes my issue, but, when I do "yum install ld-linux.so.2" I get another error mesg.
    Code:
     file /usr/lib64/audit from install of glibc-2.16-30.fc18.x86_64 conflicts with
    file from package audit-2.2.1-2.fc18.x86_64
    Thoughts?

    Thanks in advance,
    Chris

  11. #11
    Join Date
    Jan 2008
    Location
    /dev/darkness
    Posts
    103
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Railfan87
    Hi,
    New to the forum. This post pretty much describes my issue, but, when I do "yum install ld-linux.so.2" I get another error mesg.
    Code:
     file /usr/lib64/audit from install of glibc-2.16-30.fc18.x86_64 conflicts with
    file from package audit-2.2.1-2.fc18.x86_64
    It's hard to say without the full output but I suspect it's because you left out the directory part from my example. Without the "lib/" part yum can pick up other files with the same name in other directories (i am not near a computer at the moment but audit could contain such a file). In addition since you left off the lib directory the 64bit file would match just as well and yum is supposed to pick 64bit over 32 when it has the choice which would make the whole exercise pointless.

    If it still fails with what I actually said then please post the complete yum output and I can hopefully help you further.

    In addition of course the original problem can also be fixed with by installing glibc.i686 or redhat-lsb.i686 (which automatically requires the former and some other stuff). The other way I posted purely as a more flexible way that can be applied to other similar problems.
    Last edited by John5342; 30th April 2013 at 06:04 AM.
    F15 x86_64 - AMD FX60 - 4GB DDR - 4x 1TB RAID0 - 2x 9800GX2
    F15 x86_64 - AMD64 X2 3800+ - 1GB DDR - 2x 750GB - 7800GT
    OOKernel OS - AG2 GCU - 32TB ARAM - 1TB PRAM - AG1 TCU

  12. #12
    Join Date
    Apr 2013
    Location
    Miller Lake, ON
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    Hi John,

    I tried the yum install both with lib/ and /lib/ and got the same result both ways.

    Code:
    [root@localhost ~]# yum install lib/ld-linux-so.2
    Loaded plugins: langpacks, presto, refresh-packagekit
    fedora/18/x86_64/metalink                                |  20 kB     00:00
    updates/18/x86_64/metalink                               |  15 kB     00:00
    updates                                                  | 4.7 kB     00:00
    http://www.muug.mb.ca/pub/fedora/linux/updates/18/x86_64/repodata/repomd.xml: [E
    rrno -1] repomd.xml does not match metalink for updates
    Trying other mirror.
    updates                                                  | 4.7 kB     00:00
    ftp://ftp.muug.mb.ca/pub/fedora/linux/updates/18/x86_64/repodata/repomd.xml: [Er
    rno -1] repomd.xml does not match metalink for updates
    Trying other mirror.
    updates                                                  | 4.4 kB     00:00
    updates/primary_db                                         | 8.8 MB   00:22
    No package lib/ld-linux-so.2 available.
    Error: Nothing to do
    [root@localhost ~]# yum install /lib/ld-linux-so.2
    Loaded plugins: langpacks, presto, refresh-packagekit
    updates/filelists_db                                     |  12 MB     00:42
    No package /lib/ld-linux-so.2 available.
    Error: Nothing to do
    [root@localhost ~]#
    I see that yum went looking in a repository called 'ftp://ftp.muug.mb.ca/pub/fedora/linux/updates/18/x86_64/repodata/repomd.xml' Do I need to get it to go to a 32-bit repository?

    Will try your other suggestion ...

    glibc.i686:
    Code:
    [root@localhost ~]# yum install glibc.i686
    Loaded plugins: langpacks, presto, refresh-packagekit
    Resolving Dependencies
    --> Running transaction check
    ---> Package glibc.i686 0:2.16-30.fc18 will be installed
    --> Processing Dependency: glibc-common = 2.16-30.fc18 for package: glibc-2.16-3
    0.fc18.i686
    --> Processing Dependency: libfreebl3.so(NSSRAWHASH_3.12.3) for package: glibc-2
    .16-30.fc18.i686
    --> Processing Dependency: libfreebl3.so for package: glibc-2.16-30.fc18.i686
    --> Running transaction check
    ---> Package glibc-common.x86_64 0:2.16-24.fc18 will be updated
    --> Processing Dependency: glibc-common = 2.16-24.fc18 for package: glibc-2.16-2
    4.fc18.x86_64
    ---> Package glibc-common.x86_64 0:2.16-30.fc18 will be an update
    ---> Package nss-softokn-freebl.x86_64 0:3.14-5.fc18 will be updated
    ---> Package nss-softokn-freebl.i686 0:3.14.3-1.fc18 will be installed
    ---> Package nss-softokn-freebl.x86_64 0:3.14.3-1.fc18 will be an update
    --> Running transaction check
    ---> Package glibc.x86_64 0:2.16-24.fc18 will be updated
    ---> Package glibc.x86_64 0:2.16-30.fc18 will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package                  Arch         Version              Repository     Size
    ================================================================================
    Installing:
     glibc                    i686         2.16-30.fc18         updates       4.2 M
    Installing for dependencies:
     nss-softokn-freebl       i686         3.14.3-1.fc18        updates       146 k
    Updating for dependencies:
     glibc                    x86_64       2.16-30.fc18         updates       3.5 M
     glibc-common             x86_64       2.16-30.fc18         updates        11 M
     nss-softokn-freebl       x86_64       3.14.3-1.fc18        updates       158 k
    
    Transaction Summary
    ================================================================================
    Install  1 Package  (+1 Dependent package)
    Upgrade             ( 3 Dependent packages)
    
    Total size: 19 M
    Is this ok [y/N]: y
    Downloading Packages:
    Running Transaction Check
    Running Transaction Test
    
    
    Transaction Check Error:
      file /usr/lib64/audit from install of glibc-2.16-30.fc18.x86_64 conflicts with
     file from package audit-2.2.1-2.fc18.x86_64
    
    Error Summary
    -------------
    
    [root@localhost ~]#

    Thanks,
    Chris

    ---------- Post added at 08:04 AM ---------- Previous post was at 07:46 AM ----------

    yum install redhat-lsb.i686 completed successfully. Now I'll try the original package installation again.

    Thanks,
    Chris
    Last edited by Railfan87; 30th April 2013 at 01:02 PM. Reason: Added glib.686 attempt

  13. #13
    Join Date
    Dec 2013
    Location
    Israel
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

    On Fedora Core 19, use

    yum install libstdc++.i686

Similar Threads

  1. Replies: 7
    Last Post: 9th July 2010, 04:21 AM
  2. bad ELF interpreter: No such file or directory
    By tootal2 in forum Using Fedora
    Replies: 3
    Last Post: 16th February 2009, 07:46 PM
  3. Replies: 0
    Last Post: 25th October 2006, 02:54 AM
  4. error: linux/mm.h: No such file or directory
    By sciconf in forum Using Fedora
    Replies: 0
    Last Post: 7th August 2006, 08:49 PM
  5. Replies: 3
    Last Post: 1st January 2006, 07:21 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •