Confirmed to help with Portal, The Stanley Parable with these errors on start:

error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory
error while loading shared libraries: libtcmalloc_minimal.so.4: wrong ELF class: ELFCLASS64

SDL failed to create GL compatibility profile (whichProfile=0!
SDL failed to create GL compatibility profile (whichProfile=0!

Be sure to have these libraries installed: libtcmalloc-minimal4:i386 libtxc-dxtn-s2tc0:i386 libstdc++.

Rename every occurency of the file libstdc++.so.6 to libstdc++.so.6.old inside every Steam folder and every Steam game. This will make the game use the system version and not the ones bundled.

Start the game from Steam.


Steam - ‘failed to load steamui.so’

Dependencies!

  • Run sudo dpkg --add-architecture i386,apt-get update
  • Install the following packages:libgl1-mesa-glx:i386 libc6:i386 libgl1-mesa-dri:i386.
  • Add non-free in sources.list and install Steam from the repos apt-get install steam