Results 1 to 2 of 2
Hi guys,
This is all on Ubuntu 9.10. I am trying to run gcc and when it invokes ld I get the following message:
Code:
gcc main.c
ld: unknown option ...
- 10-28-2009 #1Just Joined!
- Join Date
- Dec 2007
- Posts
- 6
Missing libld_elf_i386
Hi guys,
This is all on Ubuntu 9.10. I am trying to run gcc and when it invokes ld I get the following message:
Now, its not a complete mystery. I accidentally deleted some libraries from /usr/lib/libelf* (lets not discuss how that happenedCode:gcc main.c ld: unknown option `-z relro' ld: cannot load ld backend library 'libld_elf_i386.so': libld_elf_i386.so: cannot open shared object file: No such file or directory collect2: ld returned 1 exit status
) and now I can't figure out what package to reinstall to fix this. I have done:
sudo apt-get remove <package>
followed by
sudo apt-get install <package>
on the following packages:
binutils
coreutils
elfutils
build-essential
but it doesn't fix it. Any pointers how I can fix this?
Thanks
Stephen
- 10-29-2009 #2
I would try listing all files with something like elf. Here is a link to Debian commands to should help you find what you need to re-install in order to get things working again.
APT HOWTO - Getting information about packages.
So, something like:
Good Luck.Code:apt-cache search elf apt-cache search libelf
I do not respond to private messages asking for Linux help, Please keep it on the forums only.
All new users please read this.** Forum FAQS. ** Adopt an unanswered post.


Reply With Quote
