Fixing the "ruby installation is missing psych" error?

Zack Shapiro picture Zack Shapiro · Mar 27, 2012 · Viewed 13.6k times · Source

I'm running Ruby ruby 1.9.3p125 and I keep getting this error which is making it impossible for me to do any kind of development in Rails.

It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.

I've Googled around and tried seemingly everything but nothing seems to be working. I'm really eager to start on some new projects but can't seem to get around this hurdle.

Any help is greatly appreciated!

Answer

Jesper Grann Laursen picture Jesper Grann Laursen · Apr 12, 2012

I had same problem after installing ruby 1.9.3 with rvm. I solve it by downloading yaml-0.1.4.tar.gz into ~/.rvm/archives and then reinstalled ruby again.

cd ~/.rvm/archives
wget http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz
rvm reinstall 1.9.3 

If you get some compileerrors, try with this instead

rvm reinstall 1.9.3 --with-gcc=clang