title: Mavericks, RBENV, Your Ruby version is 2.0.0, but your Gemfile specified 2.1.1
body: <p>I've read and tried the suggestions in <a href="https://stackoverflow.com/questions/23039528/your-ruby-version-is-2-0-0-but-your-gemfile-specified-2-1-0">several</a>, <a href="https://stackoverflow.com/questions/18837415/your-ruby-version-is-2-1-0-but-your-gemfile-specified-2-0-0">other</a>, <a href="https://stackoverflow.com/questions/20199970/bundlerrubyversionmismatch-your-ruby-version-is-1-9-3-but-your-gemfile-speci">questions</a>, <a href="https://stackoverflow.com/questions/19342044/in-ruby-your-ruby-version-is-1-9-3-but-your-gemfile-specified-2-0-0">like mine</a> (all with accepted answers) as well as a few more hours of Google searching, but nothing worked. That leads me to think my issue is something corrupt with a piece of Ruby/RBENV ecosystem on my computer or maybe a dreaded PATH issue. I always have to run <code>sudo</code> to install any gems, which I've never had to do before, so that's puzzling too.</p>
  
  <p>Here are some outputs of files &amp; commands I think are relevant. If you need more information, please let me know:</p>
  
  <p>.zshrc</p>
  
  <pre><code>export PATH="/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin" if which rbenv &gt; /dev/null;
  then eval "$(rbenv init - zsh)"; fi
  </code></pre>
  
  <p>ruby -v</p>
  
  <pre><code>ruby 2.1.1p76 (2014-02-24 revision 45161) [x86_64-darwin13.0]
  </code></pre>
  
  <p>rbenv local</p>
  
  <pre><code>2.1.1
  </code></pre>
  
  <p>Gemfile (I've also blown out my gemfile.lock several times too)</p>
  
  <pre><code>source 'https://rubygems.org'
  
  ruby '2.1.1'
  
  gem 'rails', '4.1.4'
  ... [omitted for brevity]
  </code></pre>
  
  <p>.ruby-version</p>
  
  <pre><code>2.1.1
  </code></pre>
  
  <p>echo $PATH</p>
  
  <pre><code>/[user path]/.rbenv/shims:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
  </code></pre>
  
  <p>I'd be grateful if anyone has any ideas about what I should try next, short of reformatting my computer. </p>
  
  <p><strong>EDIT 1:</strong> Tried option B installing both of them from their git repos below as per Ben Kreeger. <code>type rbenv</code> correctly returned rbenv is a shell function and the original message kept appearing. I reinstalled Mavericks and my setup still isn't working.</p>
  
  <p><strong>EDIT 2:</strong> Any time I try to install a gem, I get a <code>Gem::FilePermissionError</code> saying I don't have access to the Ruby 2.0.0 folder (installed as system). Going to fiddle with RBENV some more...</p>
  
  <p><strong>EDIT 3:</strong> More debugging (everything below)</p>
  
  <p>Kept erroring when installing Ruby versions with RBENV and found some people mentioning <code>readline</code> issues. </p>
  
  <p>Tried the following steps to fix readline: <a href="https://github.com/sstephenson/ruby-build/issues/550#issuecomment-40681557" rel="noreferrer">https://github.com/sstephenson/ruby-build/issues/550#issuecomment-40681557</a>, and got an error that my Xcode command line tool install was bad.</p>
  
  <p>Ran <code>xcode-select --install</code> to reinstall them.</p>
  
  <p>Tried <code>rbenv install 2.1.1</code> again, and got <code>The Ruby openssl extension was not compiled. Missing the OpenSSL lib?</code></p>
  
  <p>As per <a href="https://coderwall.com/p/n9bnug" rel="noreferrer">https://coderwall.com/p/n9bnug</a>, I linked my OpenSSL extension with <code>https://coderwall.com/p/n9bnug</code></p>
  
  <p>Reset versions of Ruby: <code>rbenv local 2.1.1</code> <code>rbenv global 2.1.1</code> and <code>rbenv rehash</code></p>
  
  <p>Everything seems to indicate bundler is trying to use my <code>system</code> Ruby install (2.0.0-p247) instead of what RBENV is specifying. Baffled where the missing link is.</p>