# Ruby 1.9.1 build and Tk

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121>\
**Category:** Ruby\
**Created:** [February 23, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121 "2009-02-23T17:15:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![patrickreilly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Post date:** [February 23, 2009, 5:15pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121/1 "2009-02-23T17:15:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![patrickreilly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/b782af/32.png) [@patrickreilly](https://www.ruby-forum.com/u/patrickreilly)\
**Post date:** [February 23, 2009, 9:04pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-build-and-tk/161121/2 "2009-02-23T21:04:44Z")

</div>

From: Patrick R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Ruby 1.9.1 build and Tk  
Date: Tue, 24 Feb 2009 01:14:26 +0900  
Message-ID: [gnui17$m4m$removed\_email\_address@domain.invalid](mailto:gnui17$m4m$removed_email_address@domain.invalid)

> 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
