Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fixing the "ruby installation is missing psych" error?

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!

like image 735
Zack Shapiro Avatar asked Mar 26 '12 22:03

Zack Shapiro


1 Answers

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
like image 160
Jesper Grann Laursen Avatar answered Sep 16 '22 15:09

Jesper Grann Laursen