Getting Warning! PATH is not properly set up when doing rvm use 2.0.0 --default
The answer was to put this:
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
# Load RVM into a shell session *as a function*
**at the BOTTOM** (last line - important!) of my .bashrc file. I had it in my .bash_profile file (I am on Ubuntu) and that only partially worked leading to the confusing errors.
RVM list - Warning! PATH is not properly set up
Try this rvm reset
Then run: rvm version
Let me Know if it still not resolved
Thanks!
RVM PATH is not properly set up
Your PATH
does not start with /home/sam/.rvm/gems/ruby-2.2.1/bin
because you have a line prepending the Heroku toolbelt path.
You can check this is true by running this in your terminal:
PATH=/home/sam/.rvm/gems/ruby-2.2.1/bin:$PATH rvm info
It shouldn't complain.
The problem comes from Heroku toolbelt modifiying your env in ways rvm doesn't care for.
As per this post, the fix is to change your .bashrc
like so:
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
You can remove the rvm line from .bash_profile
Warning! PATH is not properly set up, usually this is caused by shell initialization files
This was a bug and was handled with https://github.com/wayneeseguin/rvm/issues/2050 and was released as rvm stable 1.21.15
at 2013-07-29 19:15:30 -0700
RVM won't use the version of Ruby I tell it to use in new shells
rvm remove ruby-2.0.0-p648
rvm remove ruby-2.3.0
restart the bash
rvm --default use ruby-2.3.3
and it work
RVM - Warning! PATH is not properly set up
You are referencing two problems in your question: the first one is answered by @the-tin-man, the other is a permissions problem:
Permission denied - /Users/mbauer/.rvm/src/rvm/gems/ruby-2.0.0-p247@global/cache/gem-wrappers-1.2.1.gemERROR: While executing gem ... (Errno::EACCES)
You can fix it using:
rvm fix-permissions
Remember, always read the instructions/warnings/errors printed by RVM, they are there to help you.
Related Topics
How Would You Parse a Url in Ruby to Get the Main Domain
No Such File to Load - Readline
Nokogiri, Open-Uri, and Unicode Characters
How to Get Request Referer Path
How to Convert a String to a Constant in Ruby
Double Pipe Symbols in Ruby Variable Assignment
How to Get a Date from Date_Select or Select_Date in Rails
Ruby - Difference Between Array#≪≪ and Array#Push
Ruby Method Array#≪≪ Not Updating the Array in Hash
Need to Split Arrays to Sub Arrays of Specified Size in Ruby
How to Capture Stdout to a String
Why Use "Self" to Access Activerecord/Rails Model Properties
How to Match Accented Characters With a Regex
How to Write Postgresql Functions on Ruby on Rails
Learning Insertion Sort in Ruby
What Evaluates to False in Ruby