Run these 2 lines at the command prompt. It will remove rake 0.9.0.
substitute your username where it shows "username"
GEM_HOME='/Users/username/.rvm/gems/ruby-1.9.2-p180@global' GEM_PATH='/Users/username/.rvm/gems/ruby-1.9.2-p180@global' gem uninstall rake
GEM_HOME='/Users/username/.rvm/gems/ruby-1.9.2-p180' GEM_PATH='/Users/username/.rvm/gems/ruby-1.9.2-p180' gem uninstall rake
Then install the correct gems:
rvm gem install mysql2 -v 0.2.7
rvm gem install rake -v 0.8.7
Update the MySQL gem (statment here show for x86_64 intel install):
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
When you create a new app:
rails new -d mysql
you shouldn't need to change the gemfile or use bundle exec
I hope this makes sense. This post wont let me layout the syntax where it is readable.