general/other Library not found by linuxulator

Hello i am trying to run a Linux binary using linuxulator, i have followed that guide:
https://docs.freebsd.org/en/books/handbook/linuxemu/

Modules are loaded:

kldstat|grep linux
Bash:
9    6 0xffffffff83217000     db70 linux_common.ko
16    2 0xffffffff83358000    388f8 linux.ko
21    1 0xffffffff833b4000    30ac8 linux64.ko

Packages installed:
pkg info|grep linux_base-c7
Bash:
linux_base-c7-7.9.2009         Base set of packages needed in Linux mode (Linux CentOS 7.9.2009)

Service enabled:

grep linux /etc/rc.conf

Bash:
linux_enable="YES"
kld_list="linux linux64 linprocfs linsysfs fdescfs nvidia nvidia-modeset fusefs vmm if_bridge nmdm"

And mountpoints mounted:

mount|grep linux

Bash:
linprocfs on /compat/linux/proc (linprocfs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
tmpfs on /compat/linux/dev/shm (tmpfs, local)
devfs on /compat/linux/dev (devfs)
fdescfs on /compat/linux/dev/fd (fdescfs)
tmpfs on /compat/linux/dev/shm (tmpfs, local)

When i try to execute Linux binary i get:

./gdevelop

Bash:
./gdevelop: error while loading shared libraries: libXss.so.1: cannot open shared object file: No such file or directory

Despite library is provided by:
linux-c7-xorg-libs-7.7_9:
Bash:
/compat/linux/usr/lib/libXss.so.1
/compat/linux/usr/lib/libXss.so.1.0.0
/compat/linux/usr/lib64/libXss.so.1
/compat/linux/usr/lib64/libXss.so.1.0.0
And it is present in the correct path:

ls -la /compat/linux/lib/libXss.*

Bash:
lrwxr-xr-x  15 root wheel 11 Jun  2014 /compat/linux/lib/libXss.so.1 -> libXss.so.1.0.0
.rwxr-xr-x 11k root wheel 11 Jun  2014 /compat/linux/lib/libXss.so.1.0.0

ls -la /compat/linux/lib64/libXss.*

Bash:
lrwxr-xr-x  1 root  wheel     15 Jun 10  2014 /compat/linux/lib64/libXss.so.1 -> libXss.so.1.0.0
-rwxr-xr-x  1 root  wheel  15504 Jun 10  2014 /compat/linux/lib64/libXss.so.1.0.0


Any suggestion about it?
 
maybe export LD_LIBRARY_PATH=/compat/linux/lib
or whatever your shell needs?
Your Bash output is showing /compat/linux/usr/lib, then your ls -la commands are showing /compat/linux/lib, not sure which is correct
 
Thank you very much i didnt saw the path discrepance.
In the other hand i have another problem after exporting LD_LIBRARY_PATH:

export LD_LIBRARY_PATH=/compat/linux/lib
./gdevelop


Bash:
./gdevelop: error while loading shared libraries: libXss.so.1: wrong ELF class: ELFCLASS32
 
ok, exporting export LD_LIBRARY_PATH=/compat/linux/lib64 fixed the problem, i have missing libraries but the main problem has been resolved, mer thank you very much for your observation.
 
  • Like
Reactions: mer
ok, exporting export LD_LIBRARY_PATH=/compat/linux/lib64 fixed the problem, i have missing libraries but the main problem has been resolved, mer thank you very much for your observation.
No problem, extra eyes always helps.
 
Back
Top