Error loading needed lib libsqlite3.so.0
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
Need more log. Can you copy/paste more of box64 log while loading the server?
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
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.
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?
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