[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

okay/news

Jason Williams

10/14/2003 10:04:00 AM

I'm trying to get the YAML okay/news thing to work, and I'm having
some trouble.

I've got the latest ruby and yaml4r source from the sourceforge CVS.

I build and install ruby with a prefix of /usr (and then move a
bunch of stuff from /usr/local that seems to ignore the ./configure
prefix -- why does it do that, incidentally?).

I copy yaml4r/src/okay* to the right path, and get this problem -

$ ruby -rokay/news
/usr/lib/ruby/1.8/okay.rb:56:in `add_type': undefined method `call' for
nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/okay.rb:41:in `call'
from /usr/lib/ruby/1.8/yaml.rb:39:in `transfer'
from /usr/lib/ruby/1.8/yaml.rb:39:in `load'
from /usr/lib/ruby/1.8/yaml.rb:39:in `load'
from /usr/lib/ruby/1.8/okay.rb:70:in `load_schema'
from /usr/lib/ruby/1.8/okay/news.rb:38

So I do "ruby install.rb" on yaml4r, and now I get this problem -

$ ruby -r okay/news
src/emitter.rb:424: warning: character class has `[' without escape
src/emitter.rb:1269:in `module_eval': undefined superclass `Hash'
(TypeError)
from /usr/lib/ruby/site_ruby/1.8/yaml.rb:490:in `module_eval'
from /usr/lib/ruby/site_ruby/1.8/yaml.rb:490
from /usr/lib/ruby/site_ruby/1.8/okay.rb:7:in `require'
from /usr/lib/ruby/site_ruby/1.8/okay.rb:7
from /usr/lib/ruby/site_ruby/1.8/okay/news.rb:4:in `require'
from /usr/lib/ruby/site_ruby/1.8/okay/news.rb:4

What am I doing wrong?