![]() |
VOOZH | about |
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.
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.
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 :)
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.