I'm currently running into some problems when trying to install the latest Ruby version using RVM. I receive the following error when using rvm install ruby-2.2.0
user$ rvm install ruby-2.2.0
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.10/x86_64/ruby-2.2.0.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
ERROR: '/bin' is not writable - it is required for Homebrew, try 'brew doctor' to fix it!
Requirements installation failed with status: 1.
I then run brew doctor
and get the following error
/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory
/usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0
RVM gets stable commanded presented to me with this warning and I still never got the stable version
* WARNING: You have '~/.profile' file, you might want to load it,
to do that add the following line to '/Users/user/.bash_profile':
source ~/.profile
How can I fix this? I've been avoiding it for a while and really want to get it up and running. Thanks in advance