Error while loading shared libraries: libtcmalloc_minimal.so.4?

14,126

The library is provided by the libtcmalloc-minimal4 package which is available in repositories for 16.04 (and 16.10).

The game requires the 32-bit version of the library it seems (clue found in this GitHub issue) so if you're running a 64-bit system and haven't got any 32-bit packages, you'll need to run:

sudo dpkg --add-architecture i386

and then install with the :i386 suffix:

sudo apt install libtcmalloc-minimal4:i386
Share:
14,126

Related videos on Youtube

Danilo Ivanovic
Author by

Danilo Ivanovic

Updated on September 18, 2022

Comments

  • Danilo Ivanovic
    Danilo Ivanovic over 1 year

    I'm using Ubuntu 14.04. I'm trying to run Portal 2 game for Linux from Steam, and it's not working; when I run it from terminal I get this error:

     error while loading shared libraries: libtcmalloc_minimal.so.4
    

    How can I fix this?

    • Zanna
      Zanna about 7 years
      Have you tried installing the package? It's not installed by default. You'd use the command sudo apt install libtcmalloc-minimal4
    • Danilo Ivanovic
      Danilo Ivanovic about 7 years
      Yes . I forget to add. Under this line terminal writes wrong ELF class: ELFCLASS64 too.
    • Zanna
      Zanna about 7 years
      you may need to run sudo dpkg --add-architecture i386 and then sudo apt install libtcmalloc-minimal4:i386 *fingers crossed* (the last :i386 might not be necessary)
    • Danilo Ivanovic
      Danilo Ivanovic about 7 years
      @Zanna Yeah it worked, thank you for help. And sorry you waited i had to try some levels. :D
    • Zanna
      Zanna about 7 years
      hah no need to be sorry for that! great, glad that it worked!