# Tk problem

**URL:** <https://rubytalk.org/t/tk-problem/34195>\
**Category:** ruby-talk\
**Created:** [3 January 2007 11:02 UTC](https://rubytalk.org/t/tk-problem/34195 "2007-01-03T11:02:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Finch](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Chris\_Finch](https://rubytalk.org/u/Chris_Finch)\
**Post date:** [3 January 2007 11:02 UTC](https://rubytalk.org/t/tk-problem/34195/1 "2007-01-03T11:02:00Z")

</div>

Hi, I get the following message when trying to use Tk  
"This application has failed to start because tk84.dll was not found.  
Re-installing the application may fix this problem."

I am using Ruby 1.8.4.

Has anyone else come across this? I thought Tk was included in ruby.

Or am I missing something?

Chris.

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Gregor\_Kopp](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gregor\_Kopp](https://rubytalk.org/u/Gregor_Kopp)\
**Post date:** [3 January 2007 11:15 UTC](https://rubytalk.org/t/tk-problem/34195/2 "2007-01-03T11:15:06Z")

</div>

Chris Finch schrieb:

> Hi, I get the following message when trying to use Tk  
> "This application has failed to start because tk84.dll was not found.  
> Re-installing the application may fix this problem."
> 
> I am using Ruby 1.8.4.
> 
> Has anyone else come across this? I thought Tk was included in ruby.
> 
> Or am I missing something?
> 
> Chris.

Youre missing par example activetcl from activestate if you are using windows.

---

<div class="post-metadata">

**Author:** ![Gregor\_Kopp](https://avatars.discourse-cdn.com/v4/letter/g/4da419/32.png) [@Gregor\_Kopp](https://rubytalk.org/u/Gregor_Kopp)\
**Post date:** [3 January 2007 11:20 UTC](https://rubytalk.org/t/tk-problem/34195/3 "2007-01-03T11:20:11Z")

</div>

> Youre missing par example activetcl from activestate if you are using windows.

Sorry for double posting.  
In Ruby are only the bindings to tcl. You need a tcl distribution wich you can get her for example:

> **[Open source security developers will love - ActiveState](https://www.activestate.com/)**
>
> Secure Open Source. Binaries Built in Minutes. Build your Python, Perl, Ruby and Tcl dependencies from source and get a secure and easy-to-share runtime.

Choose here ActiveTCL (its free)

---

<div class="post-metadata">

**Author:** ![Chris\_Finch](https://avatars.discourse-cdn.com/v4/letter/c/2bfe46/32.png) [@Chris\_Finch](https://rubytalk.org/u/Chris_Finch)\
**Post date:** [3 January 2007 12:20 UTC](https://rubytalk.org/t/tk-problem/34195/4 "2007-01-03T12:20:35Z")

</div>

I have got Tk working - but now want to use Tile to give native look and  
feel.  
I have used the following code:  
Tk::Tile.\_\_Import\_Tile\_Widgets\_\_

but get in reply:

uninitialized constant Tk::Tile  
from C:/InstantRails/ruby/lib/ruby/1.8/tk.rb:1869:in `const\_missing'

Tile appears in:  
C:\InstantRails\ruby\lib\ruby\1.8\tkextlib

How do I make it work?

Chris

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).

---

<div class="post-metadata">

**Author:** ![Hidetoshi\_NAGAI](https://avatars.discourse-cdn.com/v4/letter/h/49beb7/32.png) [@Hidetoshi\_NAGAI](https://rubytalk.org/u/Hidetoshi_NAGAI)\
**Post date:** [12 January 2007 13:50 UTC](https://rubytalk.org/t/tk-problem/34195/5 "2007-01-12T13:50:05Z")

</div>

Message-ID: \<596b61490e59cfa0d7725a35f550bec5@ruby-forum.com\>

> I have got Tk working - but now want to use Tile to give native look and  
> feel.  
> I have used the following code:  
> Tk::Tile.\_\_Import\_Tile\_Widgets\_\_
> 
> but get in reply:
> 
> uninitialized constant Tk::Tile  
> from C:/InstantRails/ruby/lib/ruby/1.8/tk.rb:1869:in `const\_missing'

Did you call "require 'tkextlib/tile'"?  
If so, did you install Tile extension for your Tcl/Tk?

# ActiveTcl binary package includes Tile extension.

> Tile appears in:  
> C:\InstantRails\ruby\lib\ruby\1.8\tkextlib

That is a wrapper library for Tile extension.  
It requires Tcl/Tk's Tile libraries.

> **···**
>
> From: Chris Finch \<christopher.finch@nuth.nhs.uk\>  
> Subject: Re: Tk problem  
> Date: Wed, 3 Jan 2007 21:20:35 +0900  
> --  
> Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
