From 0bf0784494923eea4661cb20ed5258dbad22559d Mon Sep 17 00:00:00 2001 From: Teddysun Date: Thu, 8 May 2014 13:06:51 +0800 Subject: [PATCH] Fix dependencies position --- shadowsocks.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/shadowsocks.sh b/shadowsocks.sh index 8f2a5c6..9479cfd 100644 --- a/shadowsocks.sh +++ b/shadowsocks.sh @@ -70,13 +70,16 @@ function pre_install(){ echo "" echo "Press any key to start...or Press Ctrl+C to cancel" char=`get_char` + #Install necessary dependencies + yum install -y wget unzip openssl-devel gcc swig python python-devel python-setuptools autoconf libtool libevent + yum install -y automake make curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel + #Current folder + cur_dir=`pwd` + cd $cur_dir } # Download files function download_files(){ - #Current folder - cur_dir=`pwd` - cd $cur_dir if [ -f ez_setup.py ]; then echo "ez_setup.py [found]" else @@ -121,8 +124,6 @@ function iptables_set(){ # Install function install(){ - yum install -y wget openssl-devel gcc swig python python-devel python-setuptools autoconf libtool libevent - yum install -y automake make curl curl-devel zlib-devel openssl-devel perl perl-devel cpio expat-devel gettext-devel python ez_setup.py install easy_install pip if [ -f /usr/bin/pip ]; then