For me, the error was "An error occurred while installing mysql2 (0.5.4), and Bundler cannot continue"
I just had to run this command with explicit version that is the same as in my Gemfile:
gem install mysql2 -v '0.5.6' -- --srcdir=/usr/local/mysql/include
After that bundle install worked again