Edit/Disclaimer
You seems to be a beginner on linux. you should never execute code you find if you do not understand it.
My example hasn't been tested and is only a vague guidance because it is a very simple problem you should be able to correct instruction on you own.
It's a GoLang
program, you should either compile it on another machine or use the release available.
Download the version you need (most likely the amd64
).
Once downloaded extract it and use your program as much as you want.
If you're not root you cannot put it in /bin/
or in /usr/bin
but you could put it in your home ~/.bin
and add it to your $PATH:
cd ~
mkdir .bin
cd .bin
wget -O- https://github.com/Dreamacro/clash/releases/download/v1.7.1/clash-darwin-amd64-v1.7.1.gz | tar xzf -
mv clash-darwin-amd64 clash
chmod +x clash
#Edit your .bashrc to update your $PATH with:
#PATH=~/.bin:${PATH}
If your not root you will not be ale to use network port below 1024 those are reserved for system application.