问题所在:
Building native extensions. This could take a while... ERROR: Error installing mysql2: ERROR: Failed to build gem native extension.
最终发现问题原因是没有mysql.h文件,通过这个这个提示发现mysql2对mysql在osx上安装还是有一定的依赖行性的,所以就按照谷大神提供linux上思路,先安装mysql 然后安装mysql2
brew install mysql bundle install
成功搞定。