Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/27.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitLab在喘息时出错,安装Gems时出错,libmysqlclient-dev可能丢失但无法安装_Mysql_Linux_Rubygems_Debian_Gitlab - Fatal编程技术网

GitLab在喘息时出错,安装Gems时出错,libmysqlclient-dev可能丢失但无法安装

GitLab在喘息时出错,安装Gems时出错,libmysqlclient-dev可能丢失但无法安装,mysql,linux,rubygems,debian,gitlab,Mysql,Linux,Rubygems,Debian,Gitlab,因此,当我按照官方命令安装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.o

因此,当我按照官方命令安装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.
他们说这个问题经常出现在缺少库的时候。。一条评论证实了我所害怕的

若要解决问题,请键入此命令

sudo apt get安装libmysqlclient dev

sudo-apt-get-install-mysql

然后运行gem安装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

检查您的
来源。列出
/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
也将安装无误