The pkg binary that is installed via the bootstrap has problems with the libssl shared library (or libraries). The binary itself wants libssl.so.111, but /usr/local/lib/libpkg.so.4.0.0 wants libssl.so.9. I'm not sure of the path that pulls in libpkg.so, but ktrace says that it's happening. This is on a freshly installed 12.0-BETA2 (amd64 on bhyve). More details below. Mike vmguest3# pkg install bash The package management tool is not yet installed on your system. Do you want to fetch and install it now? [y/N]: y Bootstrapping pkg from pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/latest, please wait... Verifying signature with trusted certificate pkg.freebsd.org.2013102301... done Installing pkg-1.10.5_4... Extracting pkg-1.10.5_4: 100% ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" vmguest3# ls -l /usr/lib/libssl* -r--r--r-- 1 root wheel 4386406 Oct 25 22:08 /usr/lib/libssl.a lrwxr-xr-x 1 root wheel 13 Oct 25 22:08 /usr/lib/libssl.so -> libssl.so.111 -r--r--r-- 1 root wheel 604936 Oct 25 22:08 /usr/lib/libssl.so.111 -r--r--r-- 1 root wheel 4493898 Oct 25 22:08 /usr/lib/libssl_p.a vmguest3# freebsd-version 12.0-BETA2 vmguest3# ls -l /usr/sbin/pkg -r-xr-xr-x 1 root wheel 40192 Oct 25 22:16 /usr/sbin/pkg vmguest3# which pkg /usr/sbin/pkg vmguest3# pkg ld-elf.so.1: Shared object "libssl.so.9" not found, required by "pkg" vmguest3# ldd /usr/sbin/pkg /usr/sbin/pkg: libarchive.so.7 => /usr/lib/libarchive.so.7 (0x80024d000) libfetch.so.6 => /usr/lib/libfetch.so.6 (0x80030f000) libprivateucl.so.1 => /usr/lib/libprivateucl.so.1 (0x800324000) libsbuf.so.6 => /lib/libsbuf.so.6 (0x800348000) libcrypto.so.111 => /lib/libcrypto.so.111 (0x80034e000) libssl.so.111 => /usr/lib/libssl.so.111 (0x80063b000) libc.so.7 => /lib/libc.so.7 (0x8006d0000) libz.so.6 => /lib/libz.so.6 (0x800ac3000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x800add000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x800af2000) libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x800b1d000) libm.so.5 => /lib/libm.so.5 (0x800b49000) libthr.so.3 => /lib/libthr.so.3 (0x800b7b000) vmguest3# strings /usr/sbin/pkg | grep libssl libssl.so.111 vmguest3# cat /etc/libmap.conf # $FreeBSD: stable/12/libexec/rtld-elf/libmap.conf 338741 2018-09-18 00:25:00Z brd $ includedir /usr/local/etc/libmap.d vmguest3# ls /usr/local/etc/libmap.d ls: /usr/local/etc/libmap.d: No such file or directory vmguest3# ldd /usr/local/lib/libpkg.so.4.0.0 /usr/local/lib/libpkg.so.4.0.0: libutil.so.9 => /lib/libutil.so.9 (0x800672000) libssl.so.9 => not found (0) libcrypto.so.9 => not found (0) libm.so.5 => /lib/libm.so.5 (0x800689000) libelf.so.2 => /lib/libelf.so.2 (0x8006bb000) libjail.so.1 => /lib/libjail.so.1 (0x8006d5000) libarchive.so.7 => /usr/lib/libarchive.so.7 (0x8006dd000) libz.so.6 => /lib/libz.so.6 (0x80079f000) libbz2.so.4 => /usr/lib/libbz2.so.4 (0x8007b9000) liblzma.so.5 => /usr/lib/liblzma.so.5 (0x8007ce000) libc.so.7 => /lib/libc.so.7 (0x800248000) libbsdxml.so.4 => /lib/libbsdxml.so.4 (0x801038000) libcrypto.so.111 => /lib/libcrypto.so.111 (0x801064000) libthr.so.3 => /lib/libthr.so.3 (0x801351000)