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:
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.
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.
Of course anyone should feel free to rebuild these themselves if they do not trust what we share with ./play.it. But let’s keep in mind that several Linux distributions decided to trust us: play.it package versions - Repology
The point of my post was to create a bit of awareness so that people know what they are doing. And how to determine if a link is to be trusted or not. My advise would always be to use a distro’s repository as this is an extra layer of security. If it is in a repository then an extra set of eyes have seen it.
Remember, for people coming from Windows this downloading stuff from random websites is what they are used to. This is a classic target for social engineering attacks.
@vv222 If you are trusted by various distro’s then make sure that you have a package in the repositories. Let the system work in all our favor.
For future reference and for people who, as me, struggled to understand where the files libssl.so.1.0.0 and libssl.so.1.0.0 should be placed after download, paste them as root in:
As for the files themselves, I used the ones provided by steam, as @tfk suggested above.
Update: After some more research, it seems this is not an advised approach as placing outdated libraries in /lib poses a potential security risk for the system.
In the GOG forums, I found this thread where someone suggests putting the libs inside the game’s folder, so:
/home/{user}/GOG Games/Baldurs Gate II Enhanced Edition
and change {user} with your computer’s username.
Then, open start.sh in a text editor and above the line
source support/gog_com.shlib
add the following one:
export LD_LIBRARY_PATH="${CURRENT_DIR}"
This should tell the game to search for the libraries on this folder, thus ensuring the game works, while also avoiding any potential security risk.