Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Other Versions > EOL (End Of Life) Versions
FedoraForum Search

Forgot Password? Join Us!

EOL (End Of Life) Versions This is a Forum to discuss problems and workarounds for versions of Fedora that have passed End of Life.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 15th August 2011, 07:30 PM
sercsai Offline
Registered User
 
Join Date: Aug 2011
Posts: 1
windows_vistafirefox
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?
Reply With Quote
  #2  
Old 15th August 2011, 09:20 PM
John5342 Offline
Registered User
 
Join Date: Jan 2008
Location: /dev/darkness
Posts: 103
linuxchrome
Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Quote:
Originally Posted by sercsai View Post
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
Reply With Quote
  #3  
Old 18th February 2012, 08:24 PM
agapetos Offline
Registered User
 
Join Date: Jan 2009
Posts: 17
linuxfirefox
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.
Reply With Quote
  #4  
Old 18th February 2012, 08:59 PM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,911
linuxfirefox
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.
Reply With Quote
  #5  
Old 18th February 2012, 09:07 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,805
linuxfirefox
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 ???
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #6  
Old 18th February 2012, 10:17 PM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,911
linuxfirefox
Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Quote:
Originally Posted by glennzo View Post
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 ...
Reply With Quote
  #7  
Old 18th February 2012, 10:34 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,805
linuxfirefox
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.
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #8  
Old 18th February 2012, 11:12 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: Salem, Mass USA
Age: 57
Posts: 14,805
linuxfirefox
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
__________________
Glenn
The Bassinator © ®

[SIGPIC][/SIGPIC]
Laptop: Just a couple of old single core units
Desktop: BioStar MCP6PB M2+ / AMD Phenom 9750 Quad Core / 4GB / Kingston HyperX 3K SSD 240GB SATA 3.0 / 1TB SATA / EVGA GeForce 8400 GS 1GB
Reply With Quote
  #9  
Old 19th February 2012, 12:50 AM
nonamedotc Offline
Community Manager
 
Join Date: Mar 2011
Location: USA
Posts: 3,911
linuxfirefox
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,

Quote:
(Dwarf_Fortress:8454): Gtk-WARNING **: Unable to locate theme engine in module_path: "clearlooks"
Reply With Quote
  #10  
Old 29th April 2013, 11:03 PM
Railfan87 Offline
Registered User
 
Join Date: Apr 2013
Location: Miller Lake, ON
Posts: 4
windows_7firefox
Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Quote:
Originally Posted by John5342 View Post
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
Reply With Quote
  #11  
Old 30th April 2013, 06:58 AM
John5342 Offline
Registered User
 
Join Date: Jan 2008
Location: /dev/darkness
Posts: 103
Quote:
Originally Posted by Railfan87 View Post
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.
__________________
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

Last edited by John5342; 30th April 2013 at 07:04 AM.
Reply With Quote
  #12  
Old 30th April 2013, 02:04 PM
Railfan87 Offline
Registered User
 
Join Date: Apr 2013
Location: Miller Lake, ON
Posts: 4
windows_7firefox
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 02:02 PM. Reason: Added glib.686 attempt
Reply With Quote
  #13  
Old 2nd December 2013, 03:30 PM
gilmegidish Offline
Registered User
 
Join Date: Dec 2013
Location: Israel
Posts: 1
macoschrome
Re: lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

On Fedora Core 19, use

Quote:
yum install libstdc++.i686
Reply With Quote
Reply

Tags
bad, directory, elf, file, interpreter, lib or ldlinuxso2

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/lib/ld-linux.so.2: bad ELF interpreter: No such file or directory rzone Using Fedora 7 9th July 2010 05:21 AM
bad ELF interpreter: No such file or directory tootal2 Using Fedora 3 16th February 2009 07:46 PM
bash: ./pppgun: /usr/bin/wishx: bad interpreter: No such file or directory shams Using Fedora 0 25th October 2006 03:54 AM
error: linux/mm.h: No such file or directory sciconf Using Fedora 0 7th August 2006 09:49 PM
Bad ELF interpreter error: no such ld-linux-so.1 file or directory mizak Using Fedora 3 1st January 2006 07:21 AM


Current GMT-time: 12:15 (Monday, 24-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Rochford Instagram Photos - Malaybalay Travel Photos - Obanazawa Instagram Photos