Cannot find RVM when loading new Bash shell

I am really confused with this RVM Bash, which cannot find my directory. It really kills me. Whenever I download a new Bash shell, it keeps telling me:

-bash: /Users/<username>/.rvm/scripts/rvm : No such file or directory 

I can not understand what is wrong with my bash.

Below is what my .bashrc looks like:

 1 export PATH=/usr/local/bin:/usr/local/sbin:$PATH 2 3 4 export PATH=/usr/local/bin:/usr/local/sbin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/opt/local/bin:/opt/local/sbin:/Users/<username>/.rvm/gems/ruby-1.9.2-p290/bin:/ Users/<username>/.rvm/gems/ ruby-1.9.2-p290@global /bin:/Users/<username>/.rvm/rubies/ruby-1.9.2-p290/bin:/Users/<username>/.rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/local/mysq l/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/MacGPG2/bin 5 6 7 # This line for ruby version manager has been commented out 8 PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting 

The following will be my .bash_profile :

  6 [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function 7 8 ## 9 # Your previous /Users/<username>/.bash_profile file was backed up as /Users/<username>/.bash_profile.macports-saved_2011-11-01_at_20:41:30 10 ## 11 12 # MacPorts Installer addition on 2011-11-01_at_20:41:30: adding an appropriate PATH variable for use with MacPorts. 13 export PATH=/opt/local/bin:/opt/local/sbin:$PATH 14 # Finished adapting your PATH environment variable for use with MacPorts. 15 16 17 # Setting PATH for Python 2.7 18 # The orginal version is saved in .bash_profile.pysave 19 PATH="/Library/Frameworks/Python.framework/Versions/2.7/bin:${PATH}" 20 export PATH 
+4
source share
1 answer

This usually happens with a broken RVM installation. Did you just try to remove RVM or delete ~ / .rvm by accident?

First, I would try to delete line 6 in your .bash_profile, since the official way to load RVM now seems to be that you have line 8 of your .bashrc. Also, make sure your .bashrc is actually loaded. On OS X, .bashrc does not load by default.

Be sure to close all the terminal windows and open them again so that all your profile scripts are loaded again and none of them are skipped.

If it still does not work, I recommend that you simply install it again using curl -L https://get.rvm.io | bash -s stable curl -L https://get.rvm.io | bash -s stable

+6
source

All Articles