无法解决Ruby错误(缺少心理问题) [英] Unable to resolve Ruby error (missing psych)
本文介绍了无法解决Ruby错误(缺少心理问题)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
每当我在服务器上运行Ruby时,都会出现以下错误:
Whenever I run something with Ruby on my server, I get the following error:
/usr/local/rvm/rubies/ruby-1.9.3-p194/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.
我使用RVM将Ruby安装到了VPS.
I installed Ruby using RVM onto my VPS.
我尝试按照Stack Overflow上其他问题的说明安装软件包libyaml
,但无济于事.
I’ve tried installing the package libyaml
as per instructed in other issues on Stack Overflow, to no avail.
我不确定我的VPS正在运行哪种类型的系统,但是没有apt-get
命令.它确实有yum
…
I’m not sure what type of system my VPS is running, but it doesn’t have the apt-get
command. It does have yum
…
推荐答案
我遇到了这个问题,安装libyaml并没有帮助.事实证明,心理需要libyaml-devel.我当时在centos6上,所以我这样做了:
I had this problem and installing libyaml didn't help. It turned out that libyaml-devel was needed by psych. I was on centos6 so I did this:
curl -O http://www6.atomicorp.com/channels/atomic/centos/6/x86_64/RPMS/atomic-release-1.0-14.el6.art.noarch.rpm
sudo rpm -Uvh atomic-release-1.0-14.el6.art.noarch.rpm
sudo yum install libyaml-devel
rvm reinstall 1.9.3-p194
这篇关于无法解决Ruby错误(缺少心理问题)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文