Last active
May 31, 2017 19:01
-
-
Save jmjava/a385074a69e269046287a6c2a18ade98 to your computer and use it in GitHub Desktop.
Install python and pip then use pip to install ceph-deploy
This file contains 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 | |
VERSIONS=${VERSIONS:-"2.7.13.2715"} | |
GLIBVERSION=${GLIBVERSION:-"2.12-402695"} | |
# make directory | |
mkdir -p /opt/bin | |
cd /opt | |
wget http://downloads.activestate.com/ActivePython/releases/${VERSIONS}/ActivePython-${VERSIONS}-linux-x86_64-glibc-${GLIBVERSION}.tar.gz | |
tar -xzvf ActivePython-${VERSIONS}-linux-x86_64-glibc-${GLIBVERSION}.tar.gz | |
mv ActivePython-${VERSIONS}-linux-x86_64-glibc-${GLIBVERSION} apy && cd apy && ./install.sh -I /opt/python/ | |
ln -s /opt/python/bin/easy_install /opt/bin/easy_install | |
ln -s /opt/python/bin/pip /opt/bin/pip | |
ln -s /opt/python/bin/python /opt/bin/python | |
ln -s /opt/python/bin/virtualenv /opt/bin/virtualenv | |
sudo pip install ceph-deploy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment