box64 icon indicating copy to clipboard operation
box64 copied to clipboard

Error loading needed lib libsqlite3.so.0

Open luizpalazzo opened this issue 4 years ago • 4 comments

Hi, I am trying to setup a Rust server, but when the server is loading, i get this error:

Error loading needed lib /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0

I have libsqlite3 installed in the system:

ubuntu@instance-20211220-1537:/snap/lxd/21843/lib$ which sqlite3 /usr/bin/sqlite3

ubuntu@instance-20211220-1537:/snap/lxd/21843/lib$ sudo find / -name libsqlite3.so /usr/lib/aarch64-linux-gnu/libsqlite3.so

I have tried to copy the file to rust folder, but its still not working?

How can i make this work?

Thanks

luizpalazzo avatar Dec 20 '21 21:12 luizpalazzo

Need more log. Can you copy/paste more of box64 log while loading the server?

ptitSeb avatar Dec 20 '21 21:12 ptitSeb

Error loading needed lib libsqlite3.so.0 Warning: Cannot dlopen("libsqlite3.so.0"/0xb39d8430, 101) Error loading needed lib /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0 Warning: Cannot dlopen("/home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0"/0xfffd5450c250, 2) Fallback handler could not load library /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0 Error loading needed lib libsqlite3.so.0.so Warning: Cannot dlopen("libsqlite3.so.0.so"/0xb39d8430, 101) Error loading needed lib /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0.so Warning: Cannot dlopen("/home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0.so"/0xfffd5450c250, 2) Fallback handler could not load library /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0.so Error loading needed lib libsqlite3.so.0 Warning: Cannot dlopen("libsqlite3.so.0"/0xa8f11e50, 101) Error loading needed lib /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0 Warning: Cannot dlopen("/home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0"/0xfffd5450c250, 2) Fallback handler could not load library /home/ubuntu/rustserver/RustDedicated_Data/Mono/libsqlite3.so.0 DllNotFoundException: libsqlite3.so.0 at (wrapper managed-to-native) Facepunch.Sqlite.Interop.sqlite3_open(string,intptr&) at Facepunch.Sqlite.Database.Open (System.String path, System.Boolean fastMode) [0x00013] in <041bbb916b0f4f9da5712a42bff1c464>:0 at UserPersistance..ctor (System.String strFolder) [0x0003d] in <4982d2ac3adc4630bf41efb9f0984723>:0

luizpalazzo avatar Dec 20 '21 21:12 luizpalazzo

You need to find the x86_64 version of libsqlite3.so.0 and put it in Rust Server folder. The arm64 version will not work, as this library is not wrapped yet on box64.

ptitSeb avatar Dec 20 '21 21:12 ptitSeb

I am searching on the internet but i am not sure which file should i download... Can you indicate me? And after that, just copy and paste in the root folder of rustserver?

luizpalazzo avatar Dec 20 '21 22:12 luizpalazzo

Normaly you download the .deb of your distro from the website for amd64 , use ar ( from binutiles) to unpack it and than tar the debian.... file , it will be in there. I took one out of a ubuntu 18.04 .deb https://file.io/zvaZVjZJlKbe What I got here: https://packages.ubuntu.com/bionic/amd64/libsqlite3-0/download

QuintenQVD0 avatar Nov 28 '22 16:11 QuintenQVD0