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.
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop















{ 2 comments… read them below or add one }
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.
It is true that this just masks the real problem, but if you need to get everything on server running again after you messed during an upgrade or something then this really helps. I messed up during an upgrade from Freebsd 6.3 to 7.0 and got an error about a missing binary when i tried running any installed package. After i installed these legacy binaries everything worked again and was a good temporary fix until i could run portupgrade again.