Bug in Yaml.rb WAS: [Re: Bug In Ruby 1.8.0 Stops Slider]

Hello,

Below is a transcript of an email between myself and the developer for
slider. Seems when you try to load the “yaml.rb” library, and you have
not installed at least the “Syck” package, loading yaml.rb fails because
it doesn’t look like the internal yaml package for ruby is there.

Being a Ruby Nuby, I’m not sure what else to do with this, so I’m
following Chris’s advice and forwarding this here.

Thanks!

Jason

Addendum: I’ve installed the Syck-0.41 package, and the Ruby extension
for it, and now loading yaml.rb works fine. I don’t recall reading
anywhere that I needed to install some sort of yaml parser, but that
doesn’t mean it isn’t in the documentation. :slight_smile:

— Jason Dumler jason@lizardbones.com schrieb:

Hello Christian,

I’ve found a bug in ruby that seems to stop slider from working.
Slider
loads the yaml.rb library. The yaml.rb library loads the yaml/parser

library, which doesn’t exist, and therefore doesn’t load, which kills

slider.

First, thanks for writing a bugreport.
It’s the first one for slider. :slight_smile:

yaml.rb seems to load syck, the yaml parser written in C, first.
It looks like you didn’t install it, so yaml tries the ruby-only parser
which seems to be missing too.

Therefore this is a bug in yaml.rb, not in slider.

Could you please forward this bugreport to
ruby-talk@ruby-lang.org

Thank you,
+chris+

···

-------- Original Message --------


Gesendet von Yahoo! Mail - http://mail.yahoo.de
Logos und Klingeltöne fürs Handy bei http://sms.yahoo.de

You’re using Ruby 1.8.0? Both yaml.rb and syck should come
with Ruby 1.8.0. Are you using a packaging system to install? Perhaps
the RPMs, debs, whatever are missing syck.so.

_why

···

Jason Dumler (jason@lizardbones.com) wrote:

Below is a transcript of an email between myself and the developer for
slider. Seems when you try to load the “yaml.rb” library, and you have
not installed at least the “Syck” package, loading yaml.rb fails because
it doesn’t look like the internal yaml package for ruby is there.

why the lucky stiff wrote:

Below is a transcript of an email between myself and the developer for
slider. Seems when you try to load the “yaml.rb” library, and you have
not installed at least the “Syck” package, loading yaml.rb fails because
it doesn’t look like the internal yaml package for ruby is there.

You’re using Ruby 1.8.0? Both yaml.rb and syck should come
with Ruby 1.8.0. Are you using a packaging system to install? Perhaps
the RPMs, debs, whatever are missing syck.so.

This may be slightly OT, but I had a similar experience
recently.

Was trying to compile on a system which (beyond my control)
had gcc 2.91 rather than a later one.

It choked on openssl with compile errors. That meant that
anything alphabetically later (such as syck) didn’t get
built.

I didn’t realize this immediately. I tried to run an app
that used yaml and got the same error he refers to.

It’s a bit of an artifact, isn’t it? It tests whether syck
is there, and if not, tries to load yaml/parser (which is
not there either).

Hal

···

Jason Dumler (jason@lizardbones.com) wrote: