Skip to content

Instantly share code, notes, and snippets.

@jmjava
Last active May 31, 2017 19:01
Show Gist options
  • Save jmjava/a385074a69e269046287a6c2a18ade98 to your computer and use it in GitHub Desktop.
Save jmjava/a385074a69e269046287a6c2a18ade98 to your computer and use it in GitHub Desktop.
Install python and pip then use pip to install ceph-deploy
#!/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