html-pretty binary installed by pkg on amd64 system is a sparc binary not amd64 % /usr/local/bin/html-pretty /usr/local/bin/html-pretty: Exec format error. Binary file not executable. % file /usr/local/bin/html-pretty file /usr/local/bin/html-pretty /usr/local/bin/html-pretty: ELF 32-bit MSB executable, SPARC32PLUS, V8+ Required, total store ordering, version 1 (SYSV), dynamically linked, interpreter *empty*, stripped pkg version 2.4.2, FreeBSD 14.3-RELEASE-p5 pkg -vv selected output: ABI = "FreeBSD:14:amd64"; ALTABI = "freebsd:14:x86:64"; OSVERSION = "1403000"; Repositories: FreeBSD: { url : "pkg+http://pkg.FreeBSD.org/FreeBSD:14:amd64/latest", enabled : yes, priority : 0, mirror_type : "SRV", signature_type : "FINGERPRINTS", fingerprints : "/usr/share/keys/pkg" }