Install ruby & rails development stack on ubuntu 16.04

in #ubuntu8 years ago (edited)

This couldn't be any easier:

  1. # apt-get install git git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs libgdbm-dev libncurses5-dev automake libtool bison
  2. # apt-get install ruby ruby-dev
  3. # mkdir -p /var/lib/gems
  4. # chown -R user:user /var/lib/gems
  5. $ gem install nokogiri  -- --use-system-libraries
  6. $ gem install bundler bundle rails
NOTE: on step 4 replace user with your actual username.

And that's it.

Deploy your new Ruby on Rails apps from now on by using the best VPS provider out there VULTR. Get the best bang out of your buck with their low pricing, high performance cloud and incredible features, also they accept bitcoin! Get $20 USD referral credit right now to try them out by using the promo link below: