GitLab在Wheezy上,安装Gems时出错,libmysqlclient-dev可能丢失但不可撤销 [英] GitLab on Wheezy, error while installing Gems, libmysqlclient-dev probably missing but unistallable

查看:519
本文介绍了GitLab在Wheezy上,安装Gems时出错,libmysqlclient-dev可能丢失但不可撤销的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,当我正式安装GitLab时,请按照教程我在Gems安装上有错误。宝石文件仍将安装在/home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2中。

So, while I was installing GitLab following the official tutorial I got an error on the Gems installation.

Gem files will remain installed in /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11 for inspection.
Results logged to /home/git/gitlab/vendor/bundle/ruby/2.0.0/gems/mysql2-0.3.11/ext/mysql2/gem_make.out
An error occurred while installing mysql2 (0.3.11), and Bundler cannot continue.
Make sure that `gem install mysql2 -v '0.3.11'` succeeds before bundling.

查看 online 他们说这个问题常常出现在某些时候lib缺少..一个评论确认我被吓到了...

Looking online they say this problem comes often when some lib is missing.. and one comment confirm what I was scared of...


问题解决,键入这个命令

problem solve, type this command

sudo apt-get install libmysqlclient-dev

sudo apt-get install libmysqlclient-dev

sudo apt-get install mysql

sudo apt-get install mysql

然后运行gem安装mysql2

then run gem install mysql2

问题是我尝试安装它但是..

The problem is that I tried to install it but..

sudo apt-get install libmysqlclient-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libmysqlclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  mysql-server-5.5

E: Package 'libmysqlclient-dev' has no installation candidate

和mysql- server-5.5已经安装了...如何解决?

and mysql-server-5.5 is already installed... How can I solve it?

信息:Linux 3.10.13-x86_64-jb1#3 SMP Fri Oct 4 11:46: 29 CEST 2013 x86_64 GNU / Linux

Info: Linux 3.10.13-x86_64-jb1 #3 SMP Fri Oct 4 11:46:29 CEST 2013 x86_64 GNU/Linux

推荐答案

检查您的 sources.list /etc/apt/sources.list ),并确保您在这里列出了这些回复。

Check your sources.list (/etc/apt/sources.list) and make sure you have these repos listed there

deb http://packages.dotdeb.org wheezy all
deb-src http://packages.dotdeb.org wheezy all

现在运行

sudo apt-get install libmysqlclient-dev

然后 Gitlab gem 将安装没有错误。

Then Gitlab gem will install without error too.

这篇关于GitLab在Wheezy上,安装Gems时出错,libmysqlclient-dev可能丢失但不可撤销的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆