tested on linux (ruby 1.9.1, tk8.5.3, tcl8.5.3)

successful compilation..

but, the script you've suggested

require 'tcltklib'
ip =3D TclTkIp.new
ip._invoke('button', '.b', '-text', 'TEST', '-command', 'puts OK')
ip._invoke('pack', '.b')
TclTkLib.mainloop

generated the following error.

ruby test.rb
test.rb:1:in `require': no such file to load -- tcltklib (LoadError)
	from test.rb:1:in `<main>'

is this different problems?

2009. 04. 07, =BF=C0=C0=FC 6:51, Hidetoshi NAGAI =C0=DB=BC=BA:

> From: Diego Virasoro <Diego.Virasoro / gmail.com>
> Subject: Ruby 1.9.1 + Tk problem
> Date: Mon, 6 Apr 2009 19:34:21 +0900
> Message-ID: =
<cd6d47aa-7c90-49bb-b9fb-8529acf42e84 / 37g2000yqp.googlegroups.com=20
> >
>> I have a Ruby/Tk code that runs perfectly in 1.8.x but stalls in
>> 1.9.1.
>>
>> Doing some investigation it seems that even the very basic programs:
>> require 'tk'
>>
>> (that's not a mistake... it's literally only the require line) ends =20=

>> up
>> freezing the program. Anyone has any idea on what could be the
>> problem?
>>
>> I am running Mac Os X 10.4 (Tiger), on a G4 machine.
>
> I'm very sorry, but I cannot check troubles on Mac OSX.
> I need main information (trial and error) to fix troubles.
>
> First of all, does the following work fine?
> ---------------------------------------------------------------------
> require 'tcltklib'
> ip =3D TclTkIp.new
> ip._invoke('button', '.b', '-text', 'TEST', '-command', 'puts OK')
> ip._invoke('pack', '.b')
> TclTkLib.mainloop
> ---------------------------------------------------------------------
> --=20
> Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)
>
>