Fix dependencies position
This commit is contained in:
parent
2afe33ccbb
commit
0bf0784494
|
|
@ -70,13 +70,16 @@ function pre_install(){
|
||||||
echo ""
|
echo ""
|
||||||
echo "Press any key to start...or Press Ctrl+C to cancel"
|
echo "Press any key to start...or Press Ctrl+C to cancel"
|
||||||
char=`get_char`
|
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
|
# Download files
|
||||||
function download_files(){
|
function download_files(){
|
||||||
#Current folder
|
|
||||||
cur_dir=`pwd`
|
|
||||||
cd $cur_dir
|
|
||||||
if [ -f ez_setup.py ]; then
|
if [ -f ez_setup.py ]; then
|
||||||
echo "ez_setup.py [found]"
|
echo "ez_setup.py [found]"
|
||||||
else
|
else
|
||||||
|
|
@ -121,8 +124,6 @@ function iptables_set(){
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
function 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
|
python ez_setup.py install
|
||||||
easy_install pip
|
easy_install pip
|
||||||
if [ -f /usr/bin/pip ]; then
|
if [ -f /usr/bin/pip ]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user