After the 1948278201th time of having to apply this patch manually after a CSGO update I decided it's time for a script. In essense this script will:
- Detect the distribution
- Install the respective
libtcmalloc
via the disto's package manager. - Search the lib paths to find the location of
libtcmalloc_minimal.so.4
- Copy it into the
GAMEROOT/bin/linux64
path.
Put the contents of patch-gh-issue-2815.sh
in the CounterStricke Global Offensive
folder (where csgo.sh
and csgo_linux64
are).
You can easily find the correct path by going to Steam -> Right click on CS:GO -> Manage -> Browse Local Files.
- Open a terminal, navigate to the
CSGO
path (i.e.cd "CSGOPATH"
) ./patch-gh-issue-2815.sh
and hit enter.- Open CSGO and have fun after a long day of work.
- Debian / Ubuntu (I'm using Ubuntu 21.10 and it works for me)
- Fedora / Centos / RHEL
- Arch linux
- On all other distors - the script will try to find
libtcmalloc_minimal.so.4
in the OS library paths such as/lib
,/lib64
,/usr/lib
,/usr/lib64
and so on. First match wins.
I'm using this on my personal machine and it works for me. In general it should work for most of you guys, but you never know so use at own risk.
I don't have much time to look into issues with this script, but if you report I might fix.
Hey! I'm currently on a holiday and it might take a while for me to have time to check out nobara distribution. My script checks
/etc/os-release
andID_LIKE
(or sometimes justID
) to detect if the distribution is Fedora/Centos/Ubuntu/etc. It's highly likely it will already detect nobora (or any other distribution that's forking ubuntu/centos/rhel/fedora). If you docat /etc/os-release
and theID_LIKE
is Fedora then it should work without any changes necessary. Otherwise I could check it out in a few weeks. :)