I used rvm to install ruby 1.9.3. even though it was successfully installed, it complained about libyaml. and now every time i wanna install a gem (say rails) this warning shows up:
It seems your ruby installation is missing psych (for YAML output). To eliminate this warning, please install libyaml and reinstall your ruby.
I use Mac os X 10.7 (Lion).
For those with Mountain Lion and RVM version >= 1.18.x
RVM ships with this new tool that is used as a flag when installing ruby versions. It's called autolibs.
I got rid of this psych problem by doing the following:
rvm reinstall ruby-1.9.3-p392 --autolibs=3
Read the help text BEFORE by doing:
rvm help autolibs
Cool.
On CentOS 6.3 none of the above worked. However installing libyaml from source before installing ruby resolved the problem.
and then
I had this problem. libyaml wouldn't compile. It turns out I was missing libtool.
That solved my problem.
I reinstalled ruby 1.9.3 with libyaml support:
I made sure that I would use 1.9.3 before installing psych:
I installed psych:
This is what worked for me on Ubuntu:
- installing libyaml-dev (sudo apt-get install libyaml-dev)
- installing rvm + ruby 1.9.3