Surviving Mars - Segmentation fault

From Levy

Revision as of 10:51, 11 May 2021 by Louis (talk | contribs) (Instructions to get Surviving Mars to work on OpenSuSE)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Introduction

When you try to install the game "Surviving Mars" from GOG and try to run it on OpenSUSE, it fails to start with a segmentation fault. The error message is:

error while loading shared libraries: libcurl-gnutls.so.4: cannot open shared object file: No such file or directory

Fix

  • Install a suitable build environment
zypper install gcc libgnutls-devel
./configure --without-ssl --with-gnutls
make
  • The finished library will be in ./lib/.libs/libcurl.so.4.6.0
  • Copy the library to the game's installation folder into the "game" subfolder
cp ./lib/.libs/libcurl.so.4.6.0 ~/GOG\ Games/Surviving\ Mars/game/
  • Create a symlink so the game finds it:
cd ~/GOG\ Games/Surviving\ Mars/game/
ln -s libcurl.so.4.6.0 libcurl-gnutls.so.4

And that's it. Surviving Mars should now start without a problem