VOOZH about

URL: https://www.digitalocean.com/community/tutorials/how-to-install-ruby-on-rails-on-ubuntu-14-04-using-rvm?comment=14231

⇱ How To Install Ruby on Rails on Ubuntu 14.04 using RVM | DigitalOcean


How To Install Ruby on Rails on Ubuntu 14.04 using RVM

Published on April 22, 2014
Not using Ubuntu 14.04?
Choose a different version or distribution.
Ubuntu 14.04
👁 How To Install Ruby on Rails on Ubuntu 14.04 using RVM

Introduction

Ruby on Rails is one of the most popular application stacks for developers wishing to create sites and web apps. The Ruby programming language, coupled with the Rails development framework, makes app development simple.

Since Ruby on Rails doesn’t come in a neatly packaged format, getting the framework installed used to be one of the more difficult parts of getting started. Luckily, tools like rvm, the Ruby Version Manager, have made installation simple.

In this guide, we’ll show how to install rvm on an Ubuntu 14.04 VPS, and use it to install a stable version of Ruby and Rails. Although you can go through these procedures as the root user, we’ll assume you’re operating using an unprivileged user as shown in steps 1-4 in this guide.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author

Former Senior Technical Writer at DigitalOcean, specializing in DevOps topics across multiple Linux distributions, including Ubuntu 18.04, 20.04, 22.04, as well as Debian 10 and 11.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

I guess it would be a good idea to include the command to source the rvm scripts in .bashrc

echo “source ~/.rvm/scripts/rvm” >> ~/.bashrc

Worked great adding that to the bashrc as dennyac said, you should add it to article. thanks

Great post, thank you!

By the way, I could not find the file “~/.rvm/scripts/rvm”, hence “source ~/.rvm/scripts/rvm” did not work… You need to run “source /usr/local/rvm/scripts/rvm” instead. -tested in Ubuntu 14.04 LTS-

Thanks.

I had to add the key

gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3

before step 1, as this was a fresh install.

I’ve created a PPA (.deb package + auto updater) for rvm on 14.04.

Install instructions: https://github.com/raelgc/ubuntu_rvm

hello bro…i have got an error while installing ruby…when i execute the following code \curl -sSL https://get.rvm.io | bash -s stable --rails it give me following error
Successfully installed rails-deprecated_sanitizer-1.0.3 ERROR: While executing gem … (Gem::RemoteFetcher::FetchError) bad response Service Unavailable 503 (https://rubygems.global.ssl.fastly.net/quick/Marshal.4.8/mini_portile-0.6.2.gemspec.rz)

please help me what i do

Thanks works well, but now what? I want to deploy with Capistrano but I cannot figure out how to do it. There is a tutorial though it uses rbenv. Can someone tell me where to find how to deploy with Capistrano and .rvm?

Need to import key for the curl to work:

gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

Source : https://rvm.io/

Here is some more commands you need to include RVM Installation tutorial

Thank you very much guys, you save my life! Awesome post, and Pura Vida from Costa Rica :)

👁 Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

© 2026 DigitalOcean, LLC.Sitemap.
Dark mode is coming soon.