-
-
Save coa00/6d60cbfc82c2349062b40f7dd3c4868b to your computer and use it in GitHub Desktop.
CentOS に nvm, gcc4.9, git 2系をまとめて入れるスクリプト
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/sh | |
# git & nvm | |
echo "😀😀start install git2 and nvm😀😀" | |
yum install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm | |
yum install git | |
echo "✅check git version" | |
git --version | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash | |
source ~/.bashrc | |
nvm install 8.11.1 | |
echo "✅check node version" | |
node --version | |
echo "✅check npm version" | |
npm --version | |
#gcc | |
echo "😀😀start install gcc 4.9😀😀" | |
yum install scl-utils | |
wget --no-check-certificate https://copr-fe.cloud.fedoraproject.org/coprs/rhscl/devtoolset-3/repo/epel-6/rhscl-devtoolset-3-epel-6.repo -O /etc/yum.repos.d/ -O /etc/yum.repos.d/ | |
yum install devtoolset-3-gcc devtoolset-3-binutils | |
yum install devtoolset-3-gcc-c++ devtoolset-3-gcc-gfortran | |
echo "!(◎_◎;) scl enable devtoolset-3 bash を .bash_profile に追加してください!!" | |
scl enable devtoolset-3 bash | |
echo "✅check gcc version 4.9" | |
gcc --version |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment