gpt4 book ai didi

mysql - Wheezy 上的 GitLab,安装 Gems 时出错,libmysqlclient-dev 可能丢失但无法安装

转载 作者:塔克拉玛干 更新时间:2023-11-02 23:54:50 27 4
gpt4 key购买 nike

所以,当我按照官方 tutorial 安装 GitLab 时我在安装 Gems 时遇到错误。

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他们说当缺少某些库时经常会出现此问题.. 一条评论证实了我所害怕的...

problem solve, type this command

sudo apt-get install libmysqlclient-dev

sudo apt-get install mysql

then run gem install mysql2

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

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...我该如何解决呢?

信息: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) 并确保您在其中列出了这些存储库

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

现在运行

sudo apt-get install libmysqlclient-dev

然后 Gitlab gem 也将安装而不会出错。

关于mysql - Wheezy 上的 GitLab,安装 Gems 时出错,libmysqlclient-dev 可能丢失但无法安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21747026/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com