Ruby 1.9.3-P0 makes psych-the replacement for 1.8.7'sYamlLibrary, syck-the defaultYamlParser. Psych is a wrapper around und libyaml, so you're Going To Need it installed and configuredBeforeInstalling Ruby.
If you install 1.9.3-P0 without libyaml, You'll see warnings like this:
It seems your ruby installation is missing psych (ForYaml output). To eliminateThisWarning, please install libyaml and reinstall your ruby.
Installing libyaml
$ Wget http://pyyaml.org/download/libyaml/yaml-0.1.4.Tar.gz
$ Tar xzvf yaml-0.1.4.Tar.gz
$ CD yaml-0.1.4
$./Configure -- prefix =/usr/Local
$ Make
$ Make install
Quick review of what's going on: Download and untar the source code, change to the directory and install the package. You may need to sudoMake install
Command. Your mileage may vary.
Installing Ruby 1.9.3-P0
$ Wget http://ftp.ruby-lang.org/pub/ruby/1.9/Ruby-1.9.3-W.tar.gz
$ Tar xzvf ruby-1.9.3-W.tar.gz
$ CD ruby-1.9.3-P0
$./Configure -- prefix =/usr/Local-- Enable-shared -- disable-install-doc -- With-opt-Dir =/usr/Local/Lib
$ Make
$ Make install
After installing, you can verify that Ruby was installedRuby-V
. It's also worth tryingGem -- version
To make sure you don't get any errors regarding psych.
I tried installingLibyaml-devel
AndLibyaml
From yum, but couldn't get Ruby installed and recognizing those packages. out of frustration, I turned to installing libyaml by source and it just worked