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
Ruby 'Pg' Gem Linking to Wrong Copy of Libpq.5.Dylib (On Osx)
Bundler VS Rvm VS Gems VS Rubygems VS Gemsets VS System Ruby
Disable a Group of Tests in Rspec
How to Dump an Http Request from Within Sinatra
How to Find the Path a Ruby Gem Is Installed at (I.E. Gem.Lib_Path C.F. Gem.Bin_Path)
Convert Non-Ascii Chars from Ascii-8Bit to Utf-8
Is There an Add_Days in Ruby Datetime
Ruby Use Array Tvalues to Index Nested Hash of Hash
Rmagick Installation: Can't Find Magickwand.H
Ruby Convert Array into Function Arguments
Why 'Self' Method of Module Cannot Become a Singleton Method of Class
How to Select Option in Drop Down Using Capybara
How to Get Constants Defined by Ruby's Module Class via Reflection
Only Show Decimal Point If Floating Point Component Is Not .00 Sprintf/Printf