所以,当我正式安装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.
在网上看,他们说,这个问题经常出现,当一些lib丢失..和一个评论确认我害怕…
问题解决了,input这个命令
sudo apt-get install libmysqlclient-dev
sudo apt-get install mysql
然后运行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服务器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
将安装没有错误。