Can't play Baldurs Gate II (libssl.so.1.0.0)

I installed BG2 from the Lutris GOG installer. I tried to play it, and it fails because it can’t find libssl.so.1.0.0. After reading some similar issues, I used Linux Installer to install libssl1.0.0_1.0.2n-1ubuntu5_amd64.deb from here: Index of /ubuntu/pool/main/o/openssl1.0

This didn’t resolve the issue. Anyone know how to resolve the issue or some things i could try?

Is this a bug with BG2 or lutris?

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

It looks like the Lutris script does not include a workaround for the reliance of BG2:EE on an obsolete OpenSSL library.

What you could do is fetch openssl_1.0.0.tar.xz from Index of /resources/openssl/, extract x86_64/libssl.so.1.0.0 and x86_64/libcrypto.so.1.0.0 from this archive, then run the game with:

LD_LIBRARY_PATH="/path/to/directory-including-libraries" ./BaldursGateII

This should probably be included directly into the actions of the Lutris script, but I don’t know Lutris well enough to submit a patch.

Alterative

$ wget http://security.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
$ sudo apt install ./libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb

But right : must be in Lutris installer

If you have to download libraries from the web, don’t do it from any other site, do it from sites you trust.

Edit: additional note: the security.ubuntu.com URL is an http URL and thus, not secure. So we can not easily verify if this site is actually owned by Canonical.

If you want to avoid downloading random libs from the web, it might be useful to look on your own machine first. For instance, if you have steam installed then you have Linux runtimes installed. And these have many of the old libs which older games need.

For libssl, these are located here:

/home/tfk/.local/share/Steam/ubuntu12_32/steam-runtime/lib/i386-linux-gnu/libssl.so.1.0.0
/home/tfk/.local/share/Steam/ubuntu12_32/steam-runtime/lib/x86_64-linux-gnu/libssl.so.1.0.0

I always copy the so file itself to the game’s directory. Most games have a local lib directory, so there is where I put it. Some of those libs are links and the actual so lib is somewhere else, so I double check if I actually have the lib.

If the game has a lib directory, then it might not even be necessary to set the LD_LIBRARY_PATH variable.