Problem in Rvm Binary Mode Installation

I installed rvm using commands that by convention should return rvm as a function

1) bash < <(curl -sk https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer) 2) echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bash_profile 3) source .bash_profile 4) type rvm | head -1 should return ("rvm is a function") // and it returned, rails was perfectly fine yesterday. 

It worked fine yesterday, but now today, when I look at the rails. Its talking rails are not installed.

  type rvm | head -1 returns "RVM is Hashed". 

Here is something I got from the official site, but I don’t know what I should do next. So the question is:

What needs to be done so that rvm is installed in functional mode, and not in binary mode?

+6
source share
2 answers

One possible reason may be that the RVM is not accessible from the .bash_profile file, so try using the .bashrc file instead of the .bash_profile.

Copy and paste the following commands into the terminal

 echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc source ~/.bashrc 

Hope this works for you. greetings worked for me!

===== Edit =====

In all cases, the following should work:

 curl -L https://get.rvm.io | bash -s stable echo "source $HOME/.rvm/scripts/rvm" >> ~/.bash_profile echo "source $HOME/.rvm/scripts/rvm" >> ~/.bashrc 
+19
source

You must use the console to log in to the console, which you can verify by issuing:

 $SHELL -l 

You can configure your terminal to use the login shell:

+3
source

Source: https://habr.com/ru/post/910051/


All Articles