Skip to content

Instantly share code, notes, and snippets.

@owlstronaut
Last active June 21, 2020 15:59
Show Gist options
  • Save owlstronaut/2afaad823c6883b9c7a5e427034e1d72 to your computer and use it in GitHub Desktop.
Save owlstronaut/2afaad823c6883b9c7a5e427034e1d72 to your computer and use it in GitHub Desktop.
WSL2 - Ubuntu - Quick Start Ruby On Rails Setup
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev software-properties-common libffi-dev nodejs yarn
git clone https://github.com/rbenv/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
git clone https://github.com/rbenv/ruby-build.git ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL
rbenv install 2.7.1
rbenv global 2.7.1
ruby -v
gem install rails
rails -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment