I already asked this question on Stack Overflow, but someone told me to ask it here. So Garry's Mod is not working because some libraries were not found.
OS: Linux Mint 21.1 Kernel: 6.2.0
I apparently meet all the recommended specs for playing Garry's Mod, so it's likely not hardware-related, especially because it works perfectly fine on Windows.
I tried starting the game on Steam, but it loaded for 1 second, and the window just crashed with no error message.
What I did is running it in the terminal, at
~/.steam/steam/steamapps/common/GarrysMod I ran
./hl2_linux which told me that a library is not working.
Error: ./hl2_linux: error while loading shared libraries: libtcmalloc_minimal.so.4: cannot open shared object file: No such file or directory
What I tried (1):
So I did
find / -name path/to/library and put
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path/to/library into ~/.bashrc and did
./hl2_linux again, and another library was missing, repeat. But after doing that like 8 times, nano ended up breaking and the game just got a segmentation fault so I deleted that line in .bashrc.
What I tried (2):
A couple of things, deleting the Garry's Mod folder, deleting Proton, deleting Sniper, none of these worked.
I'll appreciate any help.