title: Ruby version and rvm out of sync, Ruby interpreter version not changing
body: <p>Because of a legacy system, I need to use Ruby v1.8.7-p374. I've been using RVM to use that version of Ruby and all seemed to work well, until something changed.</p>
  
  <p>Now my system will not use the Ruby version that I'm specifying with RVM. Is there a way to switch between the Ruby versions manually? </p>
  
  <p>Related question: "<a href="https://stackoverflow.com/questions/6506540/cant-change-ruby-version-using-rvm">Can&#39;t change Ruby Version using RVM</a>"</p>
  
  <p>Here are some relevant pieces of information: </p>
  
  <pre><code>$ rvm --default use ruby-1.8.7-p374
  Using /Users/wroberts/.rvm/gems/ruby-1.8.7-p374
  
  $ ruby -v
  ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
  
  
  $ echo $PATH
  /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin:/Users/wroberts/.rvm/gems/ruby-1.8.7-p374@global/bin:/Users/wroberts/.rvm/rubies/ruby-1.8.7-p374/bin:/Users/wroberts/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/ant/bin:/usr/local/mysql/bin:/Library/Java/JavaVirtualMachines/jdk1.7.0_67.jdk/Contents/Home/bin:/usr/local/apache-maven/apache-maven-3.2.3/bin:/usr/bin/chromedriver/bin:/Users/wroberts/dev/tools/flex:/usr/local/bin:/usr/bin:/usr/sbin
  
  
  $ rvm list
  
  rvm rubies
  
     ruby-1.8.7-head [ i686 ]
  =* ruby-1.8.7-p374 [ i686 ]
  
  # =&gt; - current
  # =* - current &amp;&amp; default
  #  * - default
  
  $ which ruby
  /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby
  $ ls /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby 
  /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin/ruby
  </code></pre>
  
  <hr>
  
  <pre><code>$ rvm info
  
  RVM version 1.26.4 (master) is installed yet 1.26.4 (latest) is loaded.
  Please do one of the following:
    * 'rvm reload'
    * open a new shell
    * 'echo rvm_auto_reload_flag=1 &gt;&gt; ~/.rvmrc' # for auto reload with msg.
    * 'echo rvm_auto_reload_flag=2 &gt;&gt; ~/.rvmrc' # for silent auto reload.
  </code></pre>
  
  <hr>
  
  <p>Even more issues now: </p>
  
  <pre><code>$ rvm install 1.8.7 --without-tcl --without-tk
  Warning! PATH is not properly set up, '/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin' is not at first place,
       usually this is caused by shell initialization files - check them for 'PATH=...' entries,
       it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
       to fix temporarily in this shell session run: 'rvm use ruby-1.8.7-p374'.
  
  Warning! Requested ruby installation which requires another ruby available - installing ruby-1.8.7-p374 first.
  
  Checking requirements for osx.
  /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions
  /Current/usr/bin/ruby: bad interpreter: No such file or directory
  /usr/local/bin/brew: line 28: /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.
  
  To proceed rvm requires a ruby-1.8.7-p374 compatible ruby is installed.
  We attempted to install it automatically but it failed with status 1.
  Please install it manually (or a compatible alternative) to proceed.
  </code></pre>
  
  <hr>
  
  <p>IT IS WORKING -- my workaround, and one more question</p>
  
  <p>so I did the rvm implode, which (I think) resulted in ruby not being in the System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby.</p>
  
  <p>So everytime I tried to install 1.8.7 --without-tcl --without-tk something was wrong with my brew file. </p>
  
  <p>A FEW FINAL QUESTIONS: </p>
  
  <p>I checked the brew file and at the top it was using </p>
  
  <pre><code>#!/System/Library/Frameworks/Ruby.framework/Versions/Current/usr/bin/ruby -W0
  </code></pre>
  
  <p>and I changed it to</p>
  
  <pre><code>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0
  </code></pre>
  
  <p>and now brew worked, I was able to install 1.8.7 and do rvm --default use ruby-1.8.7-p374 and my gems install etc.</p>
  
  <p>First question, is this hacky solution a major issue for me, not a big deal, or unknown territory due to sheer stupidity of the problem?</p>
  
  <p>Second question, everytime I open a new bash shell ruby -v gives me the (I believe) system version of ruby:</p>
  
  <pre><code>$ ruby -v
  ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin13]
  $ which ruby
  /usr/bin/ruby
  </code></pre>
  
  <p>but then I set the default rvm and would like this to happen automatically,</p>
  
  <pre><code>$ rvm --default use ruby-1.8.7-p374
  Warning! PATH is not properly set up, '/Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin' is not at first place,
       usually this is caused by shell initialization files - check them for 'PATH=...' entries,
       it might also help to re-add RVM to your dotfiles: 'rvm get stable --auto-dotfiles',
       to fix temporarily in this shell session run: 'rvm use ruby-1.8.7-p374'.
  Using /Users/wroberts/.rvm/gems/ruby-1.8.7-p374
  $ ruby -v
  ruby 1.8.7 (2013-06-27 patchlevel 374) [i686-darwin13.4.    
  $ which ruby
  /Users/wroberts/.rvm/rubies/ruby-1.8.7-p374/bin/ruby
  </code></pre>
  
  <p>It says my path is not properly set up, but if you check the top of this post, /Users/wroberts/.rvm/gems/ruby-1.8.7-p374/bin IS at the first place, how can this be fixed?</p>