Fix missing shared libraries for a game in Lutris

This is how I fixed missing shared libs for Baulder’s Gate 1 and 2 in Lutris. Should work for any game missing shared libs though. Just be aware, I am currently running Ubuntu 24.04 so these names and paths may be different.

Look at the log in Lutris by clicking on the up arrow beside play, then Show Logs. This will show what the game is missing after a failed start. The error I got was this:

./BaldursGate: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory

cd into root if you cannot find them in /home.

cd /
sudo find -name “libssl.so*”

I found the lib in ./snap/core18/2823/usr/lib/x86_64-linux-gnu. Both libs are there for this issue so I simply copied them both. Be sure you grab the right ones, 64bit or 32bit, and copy from\to the correct locations.

sudo cp ./snap/core18/2823/usr/lib/x86_64-linux-gnu/libssl.so.1.0.0 /usr/lib/x86_64-linux-gnu
sudo cp ./snap/core18/2823/usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.0 /usr/lib/x86_64-linux-gnu

I ran this to make sure LD paths get set properly, but likely not needed in this case.

sudo /sbin/ldconfig -v

I could have set aliases, but since they were in snaps, I don’t trust that they won’t get removed or changed later.

If you do not have the libraries you need, you may need to manually download them if you can’t find them in apt.