Having Trouble Installing Any Ruby 1.9.X (With Rbenv) on MAC Osx Due to Psych Yaml Parse Errors

Having trouble installing any ruby 1.9.x (with rbenv) on mac osx due to psych YAML parse errors

I've seen errors like this when I had a YAML syntax error in my .gemrc or .irbrc.

Check / remove them and try again.

Fixing the ruby installation is missing psych error?

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

rbenv hanging while installing Ruby 1.9.3-p286 on Ubuntu 12.04

I think the problem is solved:
The installation hung because of the SSH connection dying mid-flight. :-(

If there's anyone who knows why SSH does not terminate with an error, I would be happy to know. And if there's any switches that could mitigate the problem.

how to solve ruby installation is missing psych error?

In my case

rvm pkg install libyaml

and

rvm reinstall ruby-1.9.3-p125

solved the problem.

For people using Ubuntu, make sure that libtool is installed prior to the steps above:

sudo apt-get install libtool

For macOS users (with homebrew):

rm -rf /usr/local/lib/ruby/gems/ && brew reinstall ruby


Related Topics



Leave a reply



Submit