Skip to content

Instantly share code, notes, and snippets.

What would you like to do?

Install Development Dependencies

sudo apt install curl
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update

sudo apt-fast install git zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libffi-dev libjemalloc-dev libgmp-dev nodejs

git clone ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
echo 'eval "$(rbenv init -)"' >> ~/.bashrc
exec $SHELL

git clone ~/.rbenv/plugins/ruby-build
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
exec $SHELL

RUBY_CONFIGURE_OPTS=--with-jemalloc rbenv install 2.5.3
rbenv global 2.5.3

Install Bundler and Rails

gem install bundler
gem install rails
rbenv rehash

Verify installed versions

ruby -v
rails -v

Start working libsqlite3-dev

rails new blog && cd blog
bin/rails s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.