Here's the Fish shell equivalent of the recommended fix from #1:
set -gx PATH /home/linuxbrew/.linuxbrew/bin $PATHset -gx CC gcc-15
set -gx CXX g++-15set -e CC
set -e CXX
set -e MAKE # also clear MAKE to be safeAdd the set -gx lines (except the set -e ones) to your Fish config file:
echo 'set -gx PATH /home/linuxbrew/.linuxbrew/bin $PATH' >> ~/.config/fish/config.fish
echo 'set -gx CC gcc-15' >> ~/.config/fish/config.fish
echo 'set -gx CXX g++-15' >> ~/.config/fish/config.fishAfter running the above, retry your build with:
cd /var/home/sk/hexdocs_offline
rm -rf _build deps
rebar3 compileNote: In Fish,
set -gxmeans global (persists within the shell session) and export (available to child processes).
To add a directory toPATHwithout duplicates, consider usingfish_add_path /home/linuxbrew/.linuxbrew/bin(Fish 3.2+).