I am trying to get ruby 1.9.3 rc1 to work and it fails because of my
yaml files:
psych.rb:154:in `parse’: (/test/system.yml): couldn’t parse YAML at line
0 column 0 (Psych::SyntaxError)
If I do this however:
YAML::ENGINE.yamler = ‘syck’
And then load the same yaml file, everything works.
Now the problem is …
I do not know why psych hates my yaml files and I do not know
whether it is easy to fix. But my yaml files are critical,
and I would rather simply want to use syck and not bother about
psych, as psych chokes on yaml files which were easily usable
with syck (and older ruby versions).
Is that possible or am I stuck now?
Ideally, what I would love to tell ruby would be to permanently
use syck as the default YAML Engine to use and completely ignore
psych everywhere. But I do not want to do this:
$ sudo gem install rake
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your
ruby.
Either you stick to 1.9.2 and Syck or help us solve any possible issue
with YAML files.
/usr/local/lib/ruby/1.9.1/yaml.rb:56:in `<top (required)>':
It seems your ruby installation is missing psych (for YAML output).
To eliminate this warning, please install libyaml and reinstall your ruby.