Missing a shared object file
System info:
``` ` nonetrix@FreeBSDBox
` `.....---.......--.``` -/ -------------------
+o .--` /y:` +. OS: FreeBSD 12.2-RELEASE amd64
yo`:. :o `+- Uptime: 8 mins
y/ -/` -o/ Packages: 486 (pkg)
.- ::/sy+:. Shell: sh
/ `-- / Resolution: 1920x1200
`: :` WM: dwm
`: :` Theme: Gruvbox-Material-Dark [GTK2/3]
/ / Icons: Gruvbox-Material-Dark [GTK2/3]
.- -. Terminal: alacritty
-- -. Terminal Font: black: '0x32302f'
`:` `:` CPU: AMD Ryzen 7 3700X (16) @ 3.593GHz
.-- `--. GPU: GP104 [GeForce GTX 1080]
.---.....----. Memory: 4572MiB / 32628MiB
Error:
/compat/linux/bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
/compat/linux/bin/bash: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
ERROR: ld.so: object 'steamfix.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
/compat/linux/bin/sh: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Traceback (most recent call last):
1: from /usr/local/bin/steam:138:in `<main>'
/usr/local/bin/steam:36:in `safe_system': Command failed: "/usr/local/steam-utils/bin/../lxbin/upgrade-steam-runtime" (RuntimeError)
fstab:
# Device Mountpoint FStype Options Dump Pass#
linprocfs /compat/linux/proc linprocfs rw 0 0
linsysfs /compat/linux/sys linsysfs rw 0 0
tmpfs /compat/linux/dev/shm tmpfs rw,mode=1777 0 0
linsysfs /compat/linux/sys linsysfs rw 0 0
fdesc /dev/fd fdescfs rw 0 0 t
Steps used to install:
nonetrix@FreeBSDBox:~ $ doas pkg install steam-linux-utils
nonetrix@FreeBSDBox:~ $ doas nvim /etc/fstab #Added lines above
nonetrix@FreeBSDBox:~ $ doas reboot now
nonetrix@FreeBSDBox:~ $ doas pkg install linux-nvidia-libs-470.74
nonetrix@FreeBSDBox:~ $ doas adduser steam
nonetrix@FreeBSDBox:~ $ su steam
steam@FreeBSDBox:/home/nonetrix $ steam-setup
steam@FreeBSDBox:/home/nonetrix $ steam #Errors here
I just ran into the same issue. Turns out the pkg version of linux-steam-utils is too old - it's the quarterly package from September while the ports version is from November.
Have you tried installing the ports version?
cd /usr/ports/games/linux-steam-utils && make reinstall
Definitely not the same:
% pkg which /compat/linux/usr/lib/libtinfo.so.5
/compat/linux/usr/lib/libtinfo.so.5 was installed by package linux_base-c7-7.9.2009
This issue is obviously self-inflicted.
Hmm... if I remember correctly, steamfix.so failed to load via LD_PRELOAD because of bit width issues (32 vs. 64 bits). That was a few weeks ago, though, and I did not drill down to the exact names of the libraries that ultimately caused the problem, so claiming I had the same issue was probably a little premature.
Either way, trying the ports version today definitely fixed the issue for me and I noticed you were using the binary version from September.
I'll try the git version when I get the chance. I intend to get a different drive for FreeBSD, currently I don't have it installed also I don't want to use partitions.