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.
$ 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.
Now I thought reinstalling "rake" would solve the problem, but it didn't. I've followed this blog post, but it didn't solve my problem neither, because there're no files in the "/etc/paths.d" folder.
$ ls -a /etc/paths.d
. ..
So I've tried to change my .bashrc file as suggested in an other blog post. But this didn't work out neither.
# .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"
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?
Update
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.