X-com 2, debian jessie

Hey. I've been trying to play x-com 2 in debian jessie with no success, a few months ago i didn't have this problem, but now i tried to install the steam version and here is what i get when i try to run the game:

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

And if i try to install the library, i get the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
libsdl2-2.0-0 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

I tried different methods to no success, i read it somewhere that it may be related to debian's old multiarch version, but before i gave up i thought to ask about it here.

Edit: Apparently the reason for missing libraries was because i installed xcom in a different drive, it's probably why i couldn't run it in F25 too. After changing it to the hard drive where debian is installed the game worked.

There should be a package named something similar to libsdl2-image

You may find Debian is to old for many games (depending on hardware/drivers/libraries required)

Oh, i was using Fedora and having the same problem (and the system often broke with constant updates), that's why i switched back to Debian, i'm relatively new to Linux so fedora was a bit too difficult to handle, debian was more easy to use for me.

Thanks a lot by the way, installing libsdl2-image worked, however after installing it i got a warning for several other libraries, and what i did was the following:
locate <current library that can't be found>
ln -s <location of the first result> /usr/lib/<library name>

For some reason i had the libraries in my steam folder, they just didn't seem to have been properly installed, so this 'fixed' it and after about 5 libraries the game launched, only the crash on launch with the following error:

Setting breakpad minidump AppID = 268500
Steam_SetMinidumpSteamID: Caching Steam ID: 76561198237347028 [API loaded no]
[0205/124022:ERROR:browser_main_loop.cc(170)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
[0205/124022:ERROR:socket_libevent.cc(122)] bind() returned an error, errno=98: Address already in use
[0205/124022:ERROR:devtools_http_handler_impl.cc(295)] Cannot start http server for devtools. Stop devtools.
XCOM2: crash reporter initialised with path "/home/selhar/.local/share/feral-interactive/XCOM2/crashes"
XCOM2: crash reporter initialised with path "/home/selhar/.local/share/feral-interactive/XCOM2/crashes"
[0205/124022:ERROR:renderer_main.cc(212)] Running without renderer sandbox
[0205/124023:INFO:CONSOLE(0)] "The specified value '!' does not conform to the required format. The format is '#rrggbb' where rr, gg, bb are two-digit hexadecimal numbers.", source: file://localhost/media/hd/Arquivos/Deposito/Jogos/SteamLibrary/steamapps/common/XCOM%202/share/FeralUI/PGOW/Core/feralUI.html (0)
XCOM2: dumped to "/home/selhar/.local/share/feral-interactive/XCOM2/crashes/1ff74640-c745-aee7-2ccc3cd3-06e702e5.dmp"
XCOM2: crash reporter "/media/hd/Arquivos/Deposito/Jogos/SteamLibrary/steamapps/common/XCOM 2/bin/feral_linux_crash_reporter" launching
Game crashed, if possible email [[email protected]] with the crash file [/home/selhar/.local/share/feral-interactive/XCOM2/crashes/1ff74640-c745-aee7-2ccc3cd3-06e702e5.dmp] and details

At this point i don't have a lot of hope of making it work any longer. If anyone has a similar problem this troubleshooting might be helpful though.

Fedora broke.. Fedora Core 2? :p or maybe a Nvidia card? (about the only thing that might break is improperly installing the nvidia driver, these days everything just wroks)

It works nice in F25, with the SDL image library obviously. Fedora packages steam nicely so you don't get those other library errors.

Not sure how to fix the steam library stuff as ive never had to deal with it since Fedora made a better package of it.

DIfferent things really, once i updated the kernel and my wifi adapter would restart the system whenever i connected to the internet for a few minutes.
The last problem i had i couldn't even begin to guess what it was, after an update mpv stopped working, so i restarted the system, but it never got past the gnome login screen, it just said that "gnome has had a fatal error" or something equivalent, after that i just installed debian again.

I can't really say if it's the NVIDIA card, i installed it without much problem (according to this guide https://www.if-not-true-then-false.com/2015/fedora-nvidia-guide/ ), but maybe the updates were breaking the installation.

When i tried in F25 i didn't install the SDL image library properly though, i'll try again later, thanks a lot for the help.

Edit: Apparently the reason for missing libraries was because i installed xcom in a different drive, it's probably why i couldn't run it in F25 too. After changing it to the hard drive where debian is installed the game worked.

That sounds like a problem with paths. What I mean is its relative path is screwed up. Sounds like some symlinks coudl fix it if you really need the game to be on a separate drive.

That's not how things work in Linux. I have a large portion of my games on another disk mounted in a made up directory (/data), work'd fine. You point steam to it, it picks up the games.

This is a terrible way to install them.. never do that again :P

Here are the two preferred methods.

option 1:
Enable rpmfusion repo, then
run sudo dnf install xorg-x11-drv-nvidia akmod-nvidia "kernel-devel-uname-r == $(uname -r)"

option 2:
enable negativo17 repo, then
run sudo dnf install nvidia-settings kernel-devel dkms-nvidia vulkan.i686 nvidia-driver-libs.i686

1 Like

I'm tempted to try F25 again, i was using quite a bit of repos instead of RPM fusion.
Thanks a lot!

rpmfusion and copr are supported external repos. Anything else may lose you support via official Fedora channels. You can usually get everything you want from those two.

A post was split to a new topic: WiFi Issues