Skip to content

Instantly share code, notes, and snippets.

@coa00
Created July 18, 2018 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coa00/6d60cbfc82c2349062b40f7dd3c4868b to your computer and use it in GitHub Desktop.
Save coa00/6d60cbfc82c2349062b40f7dd3c4868b to your computer and use it in GitHub Desktop.
CentOS に nvm, gcc4.9, git 2系をまとめて入れるスクリプト
#!/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