Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

3 Answers

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: stackoverflow.com/a/9056395/497756 –  mpapis Sep 3 '12 at 8:21
add comment

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/rvm.sh not work –  Vladimir Aug 10 '12 at 17:15
add comment

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
add comment

Your Answer

 
discard

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.