bundle installでのmysql2のエラー
Gemfileに『gem 'mysql2'』を記入してbundle installをしたらエラー。
Gem files will remain installed in /home/vagrant/app/egosearch/vendor/bundle/ruby/2.2.0/gems/mysql2-0.3.18 for inspection. Results logged to /home/vagrant/app/egosearch/vendor/bundle/ruby/2.2.0/extensions/x86_64-linux/2.2.0-static/mysql2-0.3.18/gem_make.out An error occurred while installing mysql2 (0.3.18), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.3.18'` succeeds before bundling.
mysql-develをインストールして解決。
sudo yum install mysql-devel