libmysqlclient-dev安装失败

时间:2014-11-24 08:37:36

标签: 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.

2 个答案:

答案 0 :(得分:0)

再次运行以下命令,希望将安装所有必需的依赖项。

sudo apt-get update & upgrade

然后再次尝试安装libmysqlclient-dev

如果您遇到更多错误,可以尝试以下方法。这个问题与你的问题非常相似。 http://bugs.mysql.com/bug.php?id=73522

答案 1 :(得分:0)

使用此命令并重试。

sudo apt-get install default-libmysqlclient-dev
相关问题