Skip to content

Instantly share code, notes, and snippets.

@shalk
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shalk/55910d90435bb6be74f1 to your computer and use it in GitHub Desktop.
Save shalk/55910d90435bb6be74f1 to your computer and use it in GitHub Desktop.
suse 11 sp3 安装 Fabric
python -V
if [ $? != 0 ] ; then
echo "python not installed"
fi
#
rpm -ivh python-devel-2.6.0-8.12.2.x86_64.rpm
fail(){
if [ $1 != 0 ] ; then
echo "failed"
exit
fi
}
# extract *.tar.gz
for i in `ls *.tar.gz`
do
tar -zxvf $i >/dev/null
if [ $? != 0 ] ;then
echo "extract $i fail"
fi
done
# install setuptool
cd setuptools-5.4.1/
python setup.py install --prefix=/usr
fail $?
cd ..
rm -rf setuptools-5.4.1/
echo "installed setuptool-5.4.1"
# install pycrypto
cd pycrypto-2.6.1/
python setup.py build
fail $?
python setup.py install --prefix=/usr
fail $?
cd ..
rm -rf pycrypto-2.6.1/
echo "installed pytcrypto-2.6.1"
# install ecdsa-0.11
cd ecdsa-0.11
python setup.py install --prefix=/usr
fail $?
rm -rf ecdsa-0.11
echo "installed ecdsa-0.11"
# install paramiko
cd paramiko-1.14.0/
python setup.py install --prefix=/usr
fail $?
cd ..
rm -rf paramiko-1.14.0
echo "installed paramiko-1.14.0"
# install Fabri
cd Fabric-1.9.0/
python setup.py install --prefix=/usr
fail $?
cd ..
rm -rf Fabric-1.9.0/
echo "installed Fabic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment