error while running bundle install
Installing mysql2 (0.3.11) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native exte
If the stack trace includes this error:
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
Look at what version of ruby you're using with:
ruby -v
Then install the correct version of ruby dev that goes with your version of ruby:
sudo apt-get install ruby2.0-dev
sudo apt-get install ruby2.2-dev
sudo apt-get install ruby2.3-dev
Then:
gem install mysql2