[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

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

Jason Dumler

10/19/2003 5:19:00 PM

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. :-)


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

--- 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. :)

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+


__________________________________________________________________

Gesendet von Yahoo! Mail - http://mai...
Logos und Klingeltöne fürs Handy bei http://sm...






3 Answers

why the lucky stiff

10/19/2003 8:32:00 PM

0

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.
>

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

Hal E. Fulton

10/19/2003 8:37:00 PM

0

why the lucky stiff wrote:
> 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.
>>
>
>
> 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

10/20/2003 3:02:00 AM

0

why the lucky stiff wrote:
>
> 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
>

I'm compiling Ruby from sources. A little searching turns up Syck in
the ext directory, but the extension didn't compile. Here's the
relevant portion of my make log:
compiling syck
make[1]: Entering directory
`/home/jdumler/packages/ruby/ruby-1.8.0/ext/syck'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/jdumler/packages/ruby/ruby-1.8.0/ext/syck'

In fact, everything after openssl gives the exact same response.

The downloaded syck-0.41 compiled and installed fine, which fixed my
problem.

I'm using gcc 3.3.1, which might explain why everything after the
openssl extension never compiled.

Not sure what to do from here though.

Jason