01Install GOX
Go 1.26+ · Linux, macOS or WSL
go install github.com/gox-lang/server/cmd/gox@latest
If gox is not on your PATH
Go installs gox in GOBIN, or in $(go env GOPATH)/bin when GOBIN is unset. The commands below install it in ~/.local/bin and persist PATH for Bash/Zsh.
gox_bin="$(go env GOBIN)"
gox_bin="${gox_bin:-$(go env GOPATH)/bin}"
mkdir -p "$HOME/.local/bin"
if [ "$gox_bin" != "$HOME/.local/bin" ]; then
install -m 755 "$gox_bin/gox" "$HOME/.local/bin/gox"
fi
gox_path_line='export PATH="$HOME/.local/bin:$PATH"'
for gox_profile in "$HOME/.profile" "$HOME/.bashrc" \
"${ZDOTDIR:-$HOME}/.zshrc" "${ZDOTDIR:-$HOME}/.zprofile"; do
touch "$gox_profile"
grep -Fqx "$gox_path_line" "$gox_profile" ||
printf '\n%s\n' "$gox_path_line" >> "$gox_profile"
done
for gox_profile in "$HOME/.bash_profile" "$HOME/.bash_login"; do
if [ -f "$gox_profile" ]; then
grep -Fqx "$gox_path_line" "$gox_profile" ||
printf '\n%s\n' "$gox_path_line" >> "$gox_profile"
fi
done
export PATH="$HOME/.local/bin:$PATH"
Open a new terminal and run gox version to verify the persistent installation.

