Last active
August 29, 2015 14:03
-
-
Save shalk/55910d90435bb6be74f1 to your computer and use it in GitHub Desktop.
suse 11 sp3 安装 Fabric
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
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