Created
December 24, 2019 07:52
-
-
Save tindy2013/29506aa49e87c5743b8a41605edcb93e to your computer and use it in GitHub Desktop.
ssr in surge for mac
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] | |
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/[email protected] --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