Skip to content

Instantly share code, notes, and snippets.

@tindy2013
Created December 24, 2019 07:52
Show Gist options
  • Save tindy2013/29506aa49e87c5743b8a41605edcb93e to your computer and use it in GitHub Desktop.
Save tindy2013/29506aa49e87c5743b8a41605edcb93e to your computer and use it in GitHub Desktop.
ssr in surge for mac
#!/bin/bash
set -xe
#initialize sudo so that no password entering during installation
sudo -v
echo installing brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
echo configuring environment
brew reinstall git make automake autoconf libtool openssl@1.1
echo downloading and compiling shadowsocksr-libev
git clone https://github.com/shadowsocksrr/shadowsocksr-libev
cd shadowsocksr-libev
git checkout -b latest origin/Akkariiin/develop
./autogen.sh
./configure --with-openssl=/usr/local/opt/openssl@1.1 --disable-documentation
make -j8
#will not directly install this one, use another method
sudo install src/ss-local /usr/local/bin/ssr-local
cd ..
echo all done!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment