Cgi error 1.8.p4

Hi there, i got the following error using preview4:

/usr/local/lib/ruby/1.8/cgi.rb:804:in initialize': superclass methodinitialize’ must be enabled by rb_enable_super() (NameError)
from /usr/local/lib/ruby/1.8/cgi.rb:804:in new' from /usr/local/lib/ruby/1.8/cgi.rb:804:inread_multipart’
from /home/gmosx/dev/n2/web/server/request.rb:263:in
parse_parameters' from /home/gmosx/dev/n2/web/server/request.rb:232:ininitialize_from_apache’
from /home/gmosx/dev/n2/web/server/modruby-adapter.rb:123:in
`handler’

any idea what this is?

George Moschovitis

/usr/local/lib/ruby/1.8/cgi.rb:804:in `initialize': superclass method
`initialize' must be enabled by rb_enable_super() (NameError)

Well, 804 is

   803 require "stringio"
   804 body = StringIO.new

Are you sure that you are not mixing ruby-preview3 with stringio from
preview4 ?

Can you try

svg% ruby -vrstringio -e 'p StringIO.new'
ruby 1.8.0 (2003-06-23) [i686-linux]
#<StringIO:0x4009a68c>
svg%

Guy Decoux

Can you try
svg% ruby -vrstringio -e ‘p StringIO.new’
ruby 1.8.0 (2003-06-23) [i686-linux]
#StringIO:0x4009a68c

yeap, i got the following:

gmosx@sith:~/dev/n1> ruby -vrstringio -e ‘p StringIO.new’
ruby 1.8.0 (2003-07-31) [i686-linux]
#StringIO:0x401d4a70
gmosx@sith:~/dev/n1> ruby -v
ruby 1.8.0 (2003-07-31) [i686-linux]

seems ok to me, any idea?

George Moschovitis

gmosx@sith:~/dev/n1> ruby -vrstringio -e 'p StringIO.new'
ruby 1.8.0 (2003-07-31) [i686-linux]
#<StringIO:0x401d4a70>

Well, the error was given when it tried to create a new StringIO : I don't
see why your cgi can give an error

Guy Decoux

ts decoux@moulon.inra.fr wrote in message news:200308040920.h749KAF23680@moulon.inra.fr

gmosx@sith:~/dev/n1> ruby -vrstringio -e ‘p StringIO.new’
ruby 1.8.0 (2003-07-31) [i686-linux]
#StringIO:0x401d4a70

Well, the error was given when it tried to create a new StringIO : I don’t
see why your cgi can give an error

Guy Decoux

Guy, thanx for your hint! Problem solved - mod_ruby had to be
recompiled - it was compiled with pre-release 3, whereas pre-release 6
had been installed afterwards…

···


drak @ navel.gr