ruby-on-rails - libmysqlclient-dev 安装失败

标签 ruby-on-rails linux

我正在尝试捆绑安装,但中途出现错误:

Make sure that `gem install mysql -v '2.9.1'` succeeds before bundling.
and while trying to do as suggested, again dependencies arrise..
  libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.35+dfsg-1ubuntu1) but 5.5.37-0ubuntu0.13.10.1 is to be installed

 umes@umes-pc:/var/www/MachingShop_portal_v2$ sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libmysqlclient-dev : Depends: libmysqlclient18 (= 5.5.35+dfsg-1ubuntu1) but 5.5.37-0ubuntu0.13.10.1 is to be installed
E: Unable to correct problems, you have held broken packages.

最佳答案

使用此命令并重试。

sudo apt-get install default-libmysqlclient-dev

关于ruby-on-rails - libmysqlclient-dev 安装失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27100742/

相关文章:

ruby-on-rails - 如何使用 Capybara 轻松取消选中所有复选框

linux - Sudoers 文件中的 Bash 脚本,但希望该脚本在特定条件下询问根密码

ruby-on-rails - 使用Rails 4.1 ActionMailer::Preview预览电子邮件时,我需要设置哪些路线?

ruby-on-rails - 在 Rails 项目中保留自定义异常定义的常规位置是什么?

ruby-on-rails - 将 Gem 转换为 Ruby 插件

linux - Virtual Box 和 Windows 7 主机的 Gvim 重绘问题

linux - 检查文件是否存在于给定目录中,而不是子目录中

linux - autoreconf -vfi 无法正常工作

c - 信号问题,定时器(SIGEV_SIGNAL)

ruby-on-rails - 如何在前端使用后端权限