How to start Sacred Gold on Linux Mint 19 Cinnamon

2018-12-25 13:44:44 5 2



Input data:

Host:

Linux Mint 19, HP laptop with dual video adapters (Nvidia 930MX / Intel HD 430)

Software:

Sacred Gold for Linux
There were no any problems to start Sacred Gold on the previous versions of Mint, but with Mint 19 some library problems appeared. Trying to start the game using console showed such results:
./sacred

Gtk-WARNING **: Failed to load module "libgail.so": libgail.so: cannot open shared object file: No such file or directory
Gtk-WARNING **: Failed to load module "libatk-bridge.so": libatk-bridge.so: cannot open shared object file: No such file or directory
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing

So to get more details what is going on inside let's try to start the game in verbose mode:
LIBGL_DEBUG=verbose ./sacred

One of the lines showed the problem
libGL: dlopen /usr/lib/i386-linux-gnu/dri/i965_dri.so failed (/home/<path to the game>/lib/lib1/libm.so.6: version `GLIBC_2.27' not found (required by /usr/lib/i386-linux-gnu/dri/i965_dri.so))

Use find / -name "libm.so.6" command to find the right library in the system and replace existing library in the game folder using symbolic link to it:
ln -s /lib/i386-linux-gnu/libm.so.6 /home/<path to the game>/lib/lib1/libm.so.6