本文介绍了请安装 libyaml 并重新安装您的 ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
libyaml 警告不会消失,即使您安装了 libyaml
libyaml warning doesn't go away, even if you install libyaml
gem install bundler
/home/ec2-user/.rvm/rubies/ruby-1.9.3-p392/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.
Fetching: bundler-1.3.4.gem (100%)
Successfully installed bundler-1.3.4
推荐答案
首先删除任何以前的 yaml 文档
First remove any previous docs of yaml by
cd .rvm/src
sudo rm -rf yaml*
然后你可以通过 -
rvm pkg install libyaml
P.S 之后你需要重新安装 ruby.
P.S You will need to reinstall ruby after this.
更新: 如果 rvm pkg
似乎已被弃用.您可以自行编译源代码.所有的你必须从 http://pyyaml.org/download/libyaml/ 下载最新版本的 libyaml
UPDATE: If
rvm pkg
seems to be deprecated. You can compile a source on your own. All yougotta do is download the latest version of libyaml from http://pyyaml.org/download/libyaml/tar zxf yaml-0.1.4.tar.gz
cd yaml-0.1.4
./configure
make
make install
UPDATE2: 顺便说一句,您仍然可以使用 rvm pkg 和/或在重新安装 ruby 时确保通过以下方式启用自动库\curl -L https://get.rvm.io |bash -s stable --rails --autolibs=enable
UPDATE2: BTW, you could still use rvm pkg and/or when reinstalling ruby make sure to enbale autolibs by
\curl -L https://get.rvm.io | bash -s stable --rails --autolibs=enable
这篇关于请安装 libyaml 并重新安装您的 ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!