Skip to content

Instantly share code, notes, and snippets.

@tesths
Last active November 28, 2019 08:33
Show Gist options
  • Save tesths/2bc63d2d833c3c83d6ac1ff5b2f05252 to your computer and use it in GitHub Desktop.
Save tesths/2bc63d2d833c3c83d6ac1ff5b2f05252 to your computer and use it in GitHub Desktop.
rvm
#fork from https://github.com/huacnlee/init.d
# export LC_ALL=zh_CN.UTF-8
# export LANGUAGE=zh_CN.UTF-8
# sudo locale-gen zh_CN.UTF-8
sudo apt-get -y install update
sudo apt-get -y install curl
echo "Install RVM"
echo "---------------------------------------------------------------------------"
sudo apt-get -y install nodejs
command gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
command \curl -sSL https://get.rvm.io | bash -s stable
command source /etc/profile.d/rvm.sh
rvm requirements
rvm install 2.5.1
rvm use 2.5.1 --default
rvm -v
ruby -v
# gem sources --add https://gems.ruby-china.com/ --remove https://rubygems.org/
gem install bundler
bundle -v
# bundle config mirror.https://rubygems.org https://gems.ruby-china.org
# gem install rails
echo "--------------------------- Install Successed -----------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment