Skip to content

Instantly share code, notes, and snippets.

@DevGW
Created December 29, 2022 13:44
Show Gist options
  • Save DevGW/e184a26cb0311d3f4c46c6ce319e2954 to your computer and use it in GitHub Desktop.
Save DevGW/e184a26cb0311d3f4c46c6ce319e2954 to your computer and use it in GitHub Desktop.
shell :: ruby / rails install
cd
git clone https://github.com/sstephenson/rbenv.git .rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile
source ~/.bash_profile
rbenv install -v 2.5.0
rbenv global 2.5.0
ruby -v
echo "gem: --no-document" > ~/.gemrc
gem install bundler
gem install rails #-v 5.0.1
rbenv rehash
rails -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment