【问题标题】:Gitlab fails on "gem" installtionGitlab 安装“gem”失败
【发布时间】:2012-09-26 22:21:08
【问题描述】:

我已经安装了这个:

# Install curl and sudo
apt-get install curl sudo

# 3 steps in 1 command :)
curl https://raw.github.com/gitlabhq/gitlab-recipes/master/install/debian_ubuntu.sh | sh

Tutorial here...

但是当我尝试第 4 步时

sudo gem install charlock_holmes --version '0.6.8'

我遇到了这个错误 - 有人可以帮帮我吗?

$ sudo gem install charlock_holmes --version '0.6.8'
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.
ERROR:  Loading command: install (LoadError)
cannot load such file -- zlib
ERROR:  While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
$ 

我的错误是什么?

【问题讨论】:

    标签: shell ubuntu gem gitlab


    【解决方案1】:

    好的,我找到了解决方案,很简单......

    我必须安装 libyaml 并重新安装 ruby​​。

    看看这个site

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-02-24
      • 2019-05-04
      • 2013-06-26
      • 2011-08-13
      • 1970-01-01
      • 1970-01-01
      • 2016-03-29
      • 1970-01-01
      相关资源
      最近更新 更多