Cataclysm: The Last Generation

Cataclysm: The Last Generation

Not enough ratings
Linux Troubleshooting Zone
By wormywormgirl
A simple guide for getting the Linux version to play nice with your system.
   
Award
Favorite
Favorited
Unfavorite
Error while loading shared libraries, and how to fix it.
Q: My linux build isn't working, I get an error about a dependency? A: (Thanks to @teqa for this writeup)

A: This doesn't happen to everybody. Some distros have issues with SDL2 dependencies. Cataclysm uses SDL to render its graphics, so that's no good. I'm working on packaging this stuff with the game a little better, but it's kind of a headache. In the meantime, if you see an error like this, then never fear:

./cataclysm-tlg-tiles: error while loading shared libraries: libSDL2_image-2.0.so.0: cannot open shared object file: No such file or directory

Here's a quick guide to fixing that for Fedora. Other distros might use different commands, but it's all the same process.

First, make sure the system knows where the lib is when asked for it.

ldconfig -p | grep libSDL2_image

You should get something like libSDL2_image-2.0.so.0 (libc6) => /lib/libSDL2_image-2.0.so.0 if it's there. If not, then it could be that;

  • It isn't installed at all.
  • You might have the library installed somewhere weird.
  • It's linked wrong in the shared library cache.
  • If it's not there, run sudo dnf install SDL2.x86_64 to install the missing library.
  • It's there, but the game is still giving the error.

You might have the 32 bit version of the package ( "SDL2.i686"). Try running sudo dnf install SDL2 and see if it returns Package "SDL2_image-2.8.6-1.fc41.i686" is already installed. If so, then you can just install the 64 bit version with sudo dnf install SDL2.x86_64. You should now have both packages installed. If you installed the wrong version yourself, you can do sudo dnf remove SDL2_image.i686 to delete the 32 bit version. Be careful, because if it came preinstalled, then your OS might be relying on it for something. Having both won't hurt anything and doesn't take too much extra space, so don't uninstall it if you don't know it's safe.

Lastly, if you're trying to run cataclysm-launcher and it isn't working, try cataclysm-tlg-tiles instead, in the same directory.