title: OS X El Capitan - Can't install bundler using gem
body: <p>I just installed El Capitan and had to install rails. I am trying to install bundler but am getting the following error. I found this answer on stackexchange but seems like i would be messing with a security issue <a href="https://apple.stackexchange.com/questions/204312/cant-install-bundler-using-gem">https://apple.stackexchange.com/questions/204312/cant-install-bundler-using-gem</a></p>
  
  <pre><code>sudo gem install bundler --no-ri --no-rdoc
  Password:
  ERROR:  While executing gem ... (Errno::EPERM)
      Operation not permitted - /usr/bin/bundle
  </code></pre>
  
  <p>update:</p>
  
  <pre><code>$ rvm gem install bundler --no-ri --no-rdoc
  Please note that `rvm gem ...` was removed, try `gem install bundler --no-ri --no-rdoc` or `rvm all do gem install bundler --no-ri --no-rdoc` instead. ( see: 'rvm usage' )
  $ gem install bundler --no-ri --no-rdoc
  Fetching: bundler-1.10.6.gem (100%)
  ERROR:  While executing gem ... (Gem::FilePermissionError)
      You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
  $ sudo gem install bundler --no-ri --no-rdoc
  Password:
  ERROR:  While executing gem ... (Errno::EPERM)
      Operation not permitted - /usr/bin/bundle
  $ rvm all do gem install bundler --no-ri --no-rdoc
  $ bundle
  zsh: command not found: bundle
  $ sudo gem install bundler --no-ri --no-rdoc
  ERROR:  While executing gem ... (Errno::EPERM)
      Operation not permitted - /usr/bin/bundle
  $ rvm gem install bundler --no-ri --no-rdoc
  Please note that `rvm gem ...` was removed, try `gem install bundler --no-ri --no-rdoc` or `rvm all do gem install bundler --no-ri --no-rdoc` instead. ( see: 'rvm usage' )
  $ rvm gem install bundle --no-ri --no-rdoc
  Please note that `rvm gem ...` was removed, try `gem install bundle --no-ri --no-rdoc` or `rvm all do gem install bundle --no-ri --no-rdoc` instead. ( see: 'rvm usage' )
  </code></pre>