Forum: Ruby Ruby 1.9.1 build and Tk

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
E41787ef6b24503b48d9c87aa8f157fa?d=identicon&s=25 Patrick Roemer (Guest)
on 2009-02-23 17:15
(Received via mailing list)
Hi,

I've been trying to get Tk to work with Ruby 1.9.1 on OpenSuSE 11.1
(Tcl/Tk 8.5), with no success so far. I have manually fixed the config
as suggested in ext/tk/README.1st. (There has been a warning about
incompatible pthread settings between Ruby and Tk, but trying to disable
pthread support failed the build for me.) The build works, but when
trying to use Tk, I get

/home/patrick/applications/ruby/ruby1.9.1/lib/ruby/1.9.1/tk.rb:29:in
`initialize': out of stack space (infinite loop?) (RuntimeError)
        from
/home/patrick/applications/ruby/ruby1.9.1/lib/ruby/1.9.1/tk.rb:29:in
`initialize'
        from
/home/patrick/applications/ruby/ruby1.9.1/lib/ruby/1.9.1/tk.rb:1168:in
`new'
        from
/home/patrick/applications/ruby/ruby1.9.1/lib/ruby/1.9.1/tk.rb:1168:in
`block in <module:TkCore>'

With the 1.8.7 Ruby from the SuSE repository everything works fine. Any
hints?

Best regards,
Patrick
E4f967492dbd03c526cc9b397e68021d?d=identicon&s=25 Hidetoshi NAGAI (Guest)
on 2009-02-23 21:04
(Received via mailing list)
From: Patrick Roemer <sangamon@netcologne.de>
Subject: Ruby 1.9.1 build and Tk
Date: Tue, 24 Feb 2009 01:14:26 +0900
Message-ID: <gnui17$m4m$1@newsreader2.netcologne.de>
> I've been trying to get Tk to work with Ruby 1.9.1 on OpenSuSE 11.1
> (Tcl/Tk 8.5), with no success so far. I have manually fixed the config
> as suggested in ext/tk/README.1st. (There has been a warning about
> incompatible pthread settings between Ruby and Tk, but trying to disable
> pthread support failed the build for me.) The build works, but when
> trying to use Tk, I get
>
> /home/patrick/applications/ruby/ruby1.9.1/lib/ruby/1.9.1/tk.rb:29:in
> `initialize': out of stack space (infinite loop?) (RuntimeError)

I can't regenerate your trouble.
My environment is
This topic is locked and can not be replied to.