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.

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 2 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
2 comments… add one
  • Mel Jul 1, 2008 @ 15:51

    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.

  • Evan May 25, 2009 @ 16:51

    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.

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum