Skip to content

Instantly share code, notes, and snippets.

@sudo-panda
Last active January 2, 2021 12:25
Show Gist options
  • Select an option

  • Save sudo-panda/25db8e8e33d1ebcec9f01b31bf9b5ec5 to your computer and use it in GitHub Desktop.

Select an option

Save sudo-panda/25db8e8e33d1ebcec9f01b31bf9b5ec5 to your computer and use it in GitHub Desktop.
Common errors encountered when running a game in Linux and how to fix them.

Fixes for errors encountered when running games in linux

This is a rolling gist. If you want to contribute please add your error and fix in the comments.

libfreetype error

Error message

error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory

Fix

Install lib32-freetype2 package. On apt based systems the command is:

sudo apt install libfreetype6:i386

udev error in eON

Error message

eON_Core::init() - failed to initialise SDL2: Could not initialize UDEV
ERROR - eON failed to initialise!

Fix

The libudev.so.0 library is missing so we need to install it. On apt based systems the command is:

sudo apt install libudev1:i386

libpng12.so.0 error

Error message

eON_Core::init() - failed to initialise SDL_image: Failed loading libpng12.so.0: libpng12.so.0: cannot open shared object file: No such file or directory
ERROR - eON failed to initialise!

Fix

Install libpng12. This one is a little tricky on newer ubuntus (16.10+) because it's not available in the repo and will create conflict if you try to install it via a deb package. You can follow this answer for a fix: https://askubuntu.com/a/1145412

/dev/dsp error

Eroor message

AL lib: (EE) ALCplaybackOSS_open: Could not open /dev/dsp: No such file or directory

Fix

This error appears because the game depends on OSS an audio driver that goes wayyy back. To fix this need to install the pulseaudio package that add the support for such applications. On apt based systems do:

sudo apt-get install libpulse0:i386 libpulsedsp:i386
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment