RVM not found after installing RVM

I found a couple of similar posts on the same issue, but none of the solutions seem to be applicable here.

In a new installation of Ubuntu 10.10, I follow the instructions for installing RVM:

$ bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head ) 

Then I create .bash_profile and add the following line:

 [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" 

I restart the terminal and check the RVM:

 $ type rvm | head -1 -bash: type: rvm: not found 

As the RVM installation manual explains, I replaced the first line (below) with .bashrc with the second, then put aside everything else in the file and added fi.

 [ -z "$PS1" ] && return # original if [[ -n "$PS1" ]]; then # replaced with this 

Rebooted the terminal and still no luck.

Then I deleted the line that I added to .bash_profile at the beginning and added it to .bashrc, although this is not what the guide said. However, no luck. I also entered it directly on the command line with no change in behavior. When I run .rvm from ~ / .rvm / bin / rvm, it complains that there is no such file or directory as /.rvm/scripts/rvm, and that the team was not funded.

Of course, there is no such β€œscript” directory inside. / rvm, either - so I'm not sure why he is looking for him? The only directories inside .rvm are

 archives bin config gems gemsets log man rubies src tmp user 

The only thing I found during the search in the answers was other people complaining about similar problems, and people asking them to add a line with instructions in .bash_profile (which I obviously already did). At this point, I have nothing more to go on, and I'm at a standstill.

Sincerely.

Resolution: As Andrew Marshall told in his comments below, I did rm -rf.rvm and reinstall rvm. I really tried to do this twice before posting here, with the same results every time. There are no odd messages in the installation log, but no / scripts /. The only way I could say what I had was, I did it the third time that Andrew insisted. This time I checked and the / scripts / directory existed. Running 'type rvm | head -1 'confirmed this as a "function", and now I can move on.

+6
ruby ruby-on-rails installation rvm
source share
2 answers

If there is no scripts directory in .rvm , it looks like RVM was unable to successfully complete the installation. Delete the .rvm directory, try reinstalling it, and carefully look at the installation output to make sure that it complains.

+4
source share

Make sure you restart the session after reinstallation, so that rvm is in your path.

You can try to log out / log in.

You can also open your shell as an input shell. Under ubuntu 12.04:

  • Open terminal
  • Edit > Profile Preferences
  • In the "Name and Command" section, select run Command as a login shell
  • Open a new terminal ( ctrl+alt+t ) and enter rvm
+12
source share

All Articles