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.

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.