How does one handle symbolically linked commands in guix?

I want to run

cargo install tree-sitter-cli --locked

but recieve this error

error occurred in cc-rs: failed to find tool "cc": No such file or directory (os error 2)

I therefor installed gcc through

$ guix package -i gcc-toolchain

I then find a cc created as a symbolic link in /usr/bin/, but my terminal won’t find that.

What to do?

Looks like I manually created that cc in the past and shouldn’t have as that’s not the guix way.

CC=gcc cargo install tree-sitter-cli --locked

As an additional solution:

ln -s /gnu/store/xxx-gcc-toolchain-15.2.0/bin/gcc ~/.local/bin/cc

~/.bash_profile

...
# Append local programs
export PATH=$PATH:$HOME/.local/bin
...