title: An error occurred while installing rake (10.1.0), and Bundler cannot continue
body: <p>Today I've reinstalled my Mac and I had to reinstall rails etc too. Now I've set up everything correctly ( at least I hoped ), but I keep running into a very annoying error.</p>
  
  <pre><code>$ bundle install
  Fetching gem metadata from https://rubygems.org/..........
  Fetching gem metadata from https://rubygems.org/..
  Resolving dependencies...
  
  ArgumentError: invalid byte sequence in UTF-8
  An error occurred while installing rake (10.1.0), and Bundler cannot continue.
  Make sure that `gem install rake -v '10.1.0'` succeeds before bundling.
  </code></pre>
  
  <p>Now I thought reinstalling "rake" would solve the problem, but it didn't. I've followed this <a href="http://daniel.hepper.net/blog/2012/03/down-the-rabbit-hole/" rel="noreferrer">blog post</a>, but it didn't solve my problem neither, because there're no files in the "/etc/paths.d" folder.</p>
  
  <pre><code>$ ls -a /etc/paths.d
  .   ..
  </code></pre>
  
  <p>So I've tried to change my .bashrc file as suggested in an other blog post. But this didn't work out neither.</p>
  
  <pre><code># .bashrc file
  PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
  
  # Make sure the UTF-8 locale is set correctly
  export LANG="en_US.UTF-8"
  export LC_ALL="en_US.UTF-8"
  </code></pre>
  
  <p>I also tried to delete and reinstall rails, but this didn't solve the problem neither. So do you guys have any suggestions where to look?</p>
  
  <hr>
  
  <h2>   Update</h2>
  
  <p>I was able to "solve" this problem by removing RVM and Rails and using RBenv instead. I know this is not a solution to the problem, but now it does work.</p>