Last active
November 27, 2015 07:40
-
-
Save lowply/51d3d4361c7ed2718424 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
CPSM_DIR="${HOME}/.vim/bundle/cpsm" | |
[ -d ${CPSM_DIR} ] || { echo "${CPSM_DIR} not found."; exit 1; } | |
# install cmake | |
cd | |
curl -kOL https://cmake.org/files/v3.4/cmake-3.4.0-Linux-x86_64.sh | |
sh https://cmake.org/files/v3.4/cmake-3.4.0-Linux-x86_64.sh | |
sudo mv cmake-3.4.0-Linux-x86_64 /usr/local/ | |
cd /usr/local/bin | |
sudo ln -s /usr/local/cmake-3.4.0-Linux-x86_64/bin/* . | |
# install devtoolset2 | |
cd /etc/yum.repos.d/ | |
sudo curl -kOL http://people.centos.org/tru/devtools-2/devtools-2.repo | |
sudo sed -i 's/\$releasever/5/g' devtools-2.repo | |
sudo yum install -y scl-utils devtoolset-2 | |
# install boost | |
cd | |
curl -kOL http://downloads.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz | |
tar vxzf boost_1_59_0.tar.gz | |
cd boost_1_59_0 | |
sh bootstrap.sh | |
./b2 # takes 15-20 min... | |
mv boost ${HOME}/.vim/bundle/cpsm/src/ | |
# install cpsm | |
scl enable devtoolset-2 sh | |
cd ${CPSM_DIR} | |
sh install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment