I am trying to get a rails project up and running on my local machine. When I do bundle install
Fetching mysql2 0.3.20 Installing mysql2 0.3.20 with native ext
I faced the same issue when installing mysql2-0.3.21 on Mac pro.
Below mentioned solution worked for me (run the below mentioned 3 commands in the terminal pointing to your project folder):
brew install mysql gem install mysql2 -v '0.3.21' -- --srcdir=/usr/local/mysql/include bundle install