mysql2 gem hangs during installation

徘徊边缘 提交于 2019-12-12 05:25:18

问题


I'm using mysql as the database for a rails app and trying to bundle install the mysql2 gem. During the step

Installing mysql2 0.3.19 with native extensions

rather than failing and giving me an error message, it simply hangs and never gives any output at all.

For background I'm installing on a fresh digital ocean droplet that comes with rails installed on Ubuntu 14.04, using ruby 2.0.0 and without specifying a version for the mysql2 gem.


回答1:


It looks like I had the wrong version of mysql installed. Uninstalling all versions of mysql and then running

sudo apt-get install mysql-client libmysqlclient-dev

worked for me.



来源:https://stackoverflow.com/questions/33639260/mysql2-gem-hangs-during-installation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!