Note: This article was originally published in 2014. Some steps, commands, or software versions may have changed. Check the current Ubuntu documentation for the latest information.
In this step-by-step guide, you’ll learn install ruby on rails using rvm. Ubuntu is a popular Linux distribution based on Debian, widely used for servers and development environments.
Prerequisites
Before you begin, make sure you have:
- A system running Ubuntu (desktop or server edition)
- Terminal access with sudo privileges
- Basic familiarity with Linux command line
How to: Install Ruby on Rails using RVM
This is just a quick complement of the article (http://kx.cloudingenium.com/technologies/new-relic/install-nginx-agent-newrelic-ubuntu-server/ “How to: Install the NginX Agent for NewRelic in an Ubuntu server”). As I mentioned there if you need Ruby for something other than running a plugin agent like in a development web server RVM is the way to go. Below are the quick instructions on how to deploy Ruby using RVM:
sudo apt-get install curl
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm requirements
rvm install 2.1.0
rvm use 2.1.0
rvm —default use 2.1.0
gem install rails -v 4.0.2
As always, check out http://rvm.io/ for the latest up to date information on RVM.
(http://img.zemanta.com/zemified_h.png?x-id=afe47f3d-b37b-40ea-98f9-98b6c78530f8)](http://www.zemanta.com/?px “Enhanced by Zemanta”)
Summary
You’ve successfully learned install ruby on rails using rvm. If you run into any issues, double-check the prerequisites and ensure your Ubuntu environment is properly configured.