Gitlab发送关于“gem”安装的电子邮件

时间:2012-10-05 18:04:22

标签: shell ubuntu gem gitlab

我安装了这个:

# 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
$ 

我的错误是什么?

1 个答案:

答案 0 :(得分:0)

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

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

请看一下这个site