Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

where should I put this line source ~/.rvm/scripts/rvm it make it work when system start or how to install rvm on Ubuntu correctly for all users in my system?

share|improve this question

Any scripts placed in the directory /etc/profile.d are sourced by all users when they start a shell.

I see a package ruby-rvm exists, but you would need to check what version it is and what configuration it sets up.

share|improve this answer
I install ruby-rvm and update rvm. After that I install ruby 1.9.3 in /usr/share/ruby-rvm – Vladimir Aug 9 '12 at 17:29
Package ruby-rvm is a old version of rvm, it also contains some bugs and introduces some random errors not know to standard rvm installations, her is a fix I wrote some time ago: – mpapis Sep 3 '12 at 8:21

To make that work you need to add that line to ~/.bashrc. But note that this will only work for the current user.

share|improve this answer
/etc/profile.d/ not work – Vladimir Aug 10 '12 at 17:15

This line should be added to ~/.bash_profile and/or ~/.zprofile, this is automatically done when you run rvm updater with --auto flag, as it was not available in older versions best path would be:

rvm get head
rvm reload
rvm get stable --auto

as you are using ubuntu you should also check instructions for gnome terminal.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.