Freebsd: /libexec/ld-elf.so.1: Shared object "libc.so.6" not found Error and Solution
Q. When I type portmanager I get an error that read as follows:
freebsd /libexec/ld-elf.so.1: Shared object "libc.so.6" not found
How do I fix this error?
A. To fix this error you need to install port - /usr/ports/misc/compat6x. This package allows you to install the compat6x libraries on your system, so you can use legacy binaries that depend on them. Type the following command at a shell prompt:
# cd /usr/ports/misc/compat6x
# make install clean
Now you should able to use portmanager command.
E-mail this to a friend
Printable version
Related Other Helpful FAQs:
- Bash Shell Check Whether a Directory is Empty or Not
- Linux setup shared directory
- PHP not connecting to a MySQL database server
- How do I Create files needed to build and use DLLs under Linux?
- x86_64 Linux Error: gnu/stub-32.h missing error and solution
Discussion on This FAQ
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!
Tags: /usr/ports/misc/compat6x, freebsd portmanager, make command, portmanager command




July 1st, 2008 at 3:51 pm
This is actually bad advice.
Here’s the reasons I’ll say that:
1) It will mask the actual problem, which is that the software has not been recompiled since the OS had a major version upgrade.
2) If your system upgrade only worked partially, then now also the old system binaries will work again, as libc.so.6 can be found. Again, masking the real problem.
3) The proper way to address the problem, is to rebuild the port manager software you’re using and then rebuild all your ports. An article like this would the ideal opportunity to show how that is done.
4) You also then have the opportunity to explain what compat6x really is for: 3rd party binaries that are not (yet) available for 7.x and the ports system pulls in compat6x by itself where required.