mysql2 gem 在安装过程中挂起 [英] mysql2 gem hangs during installation
问题描述
我使用 mysql 作为 rails 应用程序的数据库,并尝试捆绑安装 mysql2
gem.在步骤中
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.
作为背景,我正在安装在 Ubuntu 14.04 上安装了 Rails 的全新数字海洋水滴上,使用 ruby 2.0.0 并且没有指定 mysql2
gem 的版本.
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.
推荐答案
看来我安装了错误的 mysql 版本.卸载所有版本的mysql然后运行
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
为我工作.
这篇关于mysql2 gem 在安装过程中挂起的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!