Shell Gitlab在“上失败”;创业板“;安装

Shell Gitlab在“上失败”;创业板“;安装,shell,ubuntu,gem,gitlab,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 但是当我尝试第四步时 sudo gem install charlock_holmes --version '0.6.8' 我犯了这个错误,有

我已经安装了这个:

# 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

但是当我尝试第四步时

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
$ 
$sudo gem安装charlock\u holmes--0.6.8版
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in`:
您的ruby安装似乎缺少psych(用于YAML输出)。
要消除此警告,请安装libyaml并重新安装ruby。
错误:加载命令:安装(加载错误)
无法加载这样的文件--zlib
错误:执行gem时。。。(名称错误)
未初始化的常量Gem::Commands::InstallCommand
$ 

我的错误是什么?

好的,我找到了一个解决方案,非常简单

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

看看这个