RVM / Rails installation error on ubuntu 11.04

After upgrading to ubuntu 11.04, I had a problem with rvm. I follow this guide: http://ruby.railstutorial.org/ruby-on-rails-tutorial-book#top

Git is set to OK when I follow the instructions on the RVM website, apparently it’s also OK, but when I close the terminal and open a new one and type ruby -v or rvm -v , for example, I got the message “rvm is not installed”.

What should I do?

+4
source share
4 answers

After some Googling, I found: http://ygamretuta.me/2011/05/09/install-rvm-in-ubuntu-11-04-and-mac-osx-snow-leopard/

which worked for me (Ubuntu 11.04, x64)

Change the .bashrc file instead of the ~ / .bash_profile file with your favorite editor

vim .bashrc

add this to the bottom:

if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" ; fi

Hope this helps guys!

+3
source

Check if you have ~ / .bash_profile and add the following code to it (create a file if it does not exist):

 [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* 

In addition, if you are using the gnu screen, you must add

 source ~/.bash_profile 

to the end of your ~ / .bashrc file.

Then enter

 type rvm | head -1 

in your terminal and you should get the message " rvm is a function "

After that, you can follow the instructions in the RailsTutorial .

+2
source

I recently wrote a tutorial on running RVM on Ubuntu 11.04: http://blog.dcxn.com/2011/06/20/setting-up-rvm-on-ubuntu-11-04/

Hope this helps if you have future problems or questions.

+1
source

I had a similar problem and I will talk about the steps that worked for me:

  • After this article was very useful (even if I have installed 11.04)
  • Installation was done with sudo privileges
  • Installation not added / /usr/local/rvm/bin to PATH

Hope this helps someone.

0
source

All Articles