Irb difficulties

Just updated Ruby from CVS, compiled it, and started up irb.

ted@acacia:bin > irb
/usr/local/lib/ruby/1.7/irb.rb:54:in start': private methodinitialize’ called for IRB:Module (NoMethodError)
from /usr/local/bin/irb:13

‘ruby’ appears to work just fine, though.

Any pointers appreciated!

ted@acacia:bin > irb
/usr/local/lib/ruby/1.7/irb.rb:54:in `start': private method
`initialize' called for IRB:Module (NoMethodError)

  * eval.c (rb_add_method): initialize should always be private.

Guy Decoux

···

Thu Nov 14 08:23:42 2002 Yukihiro Matsumoto <matz@ruby-lang.org>

Ted wrote:

Just updated Ruby from CVS, compiled it, and started up irb.

ted@acacia:bin > irb
/usr/local/lib/ruby/1.7/irb.rb:54:in start': private method initialize’ called for IRB:Module (NoMethodError)
from /usr/local/bin/irb:13

‘ruby’ appears to work just fine, though.

No pointers, just wanted to say I bumped into this today as well. After
I installed it on our server sigh

Rob

-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

Ted wrote:

Just updated Ruby from CVS, compiled it, and started up irb.

ted@acacia:bin > irb
/usr/local/lib/ruby/1.7/irb.rb:54:in start': private method initialize’ called for IRB:Module (NoMethodError)
from /usr/local/bin/irb:13

‘ruby’ appears to work just fine, though.

Any pointers appreciated!

Until irb’s maintainer makes an official fix to the CVS sources, you can
change line 16 of ruby/lib/irb/init.rb from this:

def IRB.initialize(ap_path)

to this:

def IRB.setup(ap_path)

and then change line 54 of ruby/lib/irb.rb from this:

IRB.initialize(ap_path)

to:

IRB.setup(ap_path)

Hope this helps,

Lyle

Lyle Johnson wrote:

Until irb’s maintainer makes an official fix to the CVS sources, you can
change line 16 of ruby/lib/irb/init.rb from this:

Thanks Lyle :slight_smile:

Rob

-----------== Posted via Newsfeed.Com - Uncensored Usenet News ==----------
http://www.newsfeed.com The #1 Newsgroup Service in the World!
-----= Over 100,000 Newsgroups - Unlimited Fast Downloads - 19 Servers =-----

Hi,

···

In message “Re: irb difficulties.” on 02/11/19, ts decoux@moulon.inra.fr writes:

ted@acacia:bin > irb
/usr/local/lib/ruby/1.7/irb.rb:54:in start': private method initialize’ called for IRB:Module (NoMethodError)

Thu Nov 14 08:23:42 2002 Yukihiro Matsumoto matz@ruby-lang.org

  • eval.c (rb_add_method): initialize should always be private.

I will fix this soon.

						matz.