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).
I was having this error and noticed I had different versions of Ruby installed with HomeBrew, along with many gems that I no longer used. So did a full clean up like this:
If you don't use a
Gemfile
, make sure you know which gems to reinstall.When I switch from 64 bit to 32 bit on Snow Leopard 10.6.8, I had reinstalled ruby (used rvm) to run on 32bit and met the same problem. So I just 'cleanup' all thing that cached by rvm before and problems solved. Hope this tip can help someone.
BTW, if you still meet this problem, I think you can try:
In my case the solution was to add the
psych
gem to the Gemfile.Installing ruby with rvm for mac osx, use autolibs to install libyaml and first uninstalling libyaml helps.
This worked for me:
On Solaris:
to add
/usr/local/lib
to the shared library search path (see man crle)On Snow Leopard, the solution by Catharz did not work for me. This solution, however, did:
(The rvm reinstall gave me a warning about clang not having the option "--with-libyaml" but it solved the error message regardless.)