# First GUI application using TK

**URL:** <https://www.ruby-forum.com/t/first-gui-application-using-tk/154439>\
**Category:** Ruby\
**Created:** [November 29, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439 "2008-11-29T17:40:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cozzaamara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@cozzaamara](https://www.ruby-forum.com/u/cozzaamara)\
**Post date:** [November 29, 2008, 5:40pm UTC](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439/1 "2008-11-29T17:40:19Z")

</div>

Hi guys, for first sorry for my english.

I’m a newbie with Ruby and i was trying to make a simple script using  
“Tk”

I’ve installed Ruby 1.8.6 and ActiveTcl 8.5.5 but when i try to execute  
this code

require ‘tk’  
hello = TkRoot.new {title “Hello World”}  
Tk.mainloop

i received an errore message like "Impossible to run the application.  
tk84.dll has not founded. Maybe a new installation could solve the  
problem.

Thank you. 🙂

---

<div class="post-metadata">

**Author:** ![cozzaamara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@cozzaamara](https://www.ruby-forum.com/u/cozzaamara)\
**Post date:** [December 1, 2008, 3:24am UTC](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439/2 "2008-12-01T03:24:46Z")

</div>

From: Yuri R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: First GUI application using TK  
Date: Sun, 30 Nov 2008 01:35:11 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> I’ve installed Ruby 1.8.6 and ActiveTcl 8.5.5 but when i try to execute  
> this code  
> (snip)  
> i received an errore message like "Impossible to run the application.  
> tk84.dll has not founded. Maybe a new installation could solve the  
> problem.

Your tcltklib.dll (installed a part of your Ruby 1.8.6) will be  
compiled for Tcl/Tk 8.4.x.  
Please use ActiveTcl 8.4.x or recompile tcltklib.dll for Tcl/Tk 8.5.x.

If you want to recompile tcltklib.dll, please read  
ext/tk/README.ActiveTcl and ext/tk/README.tcltklib.

# When tcltklib.dll is compiled for Tcl/Tk 8.4.x with

# –enable-tcltk-stubs (and link to tclstub8.4/tkstub8.4),

# possibly the tcltklib.dll works with DLLs of Tcl/Tk 8.5.x.

---

<div class="post-metadata">

**Author:** ![cozzaamara](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/3e96dc/32.png) [@cozzaamara](https://www.ruby-forum.com/u/cozzaamara)\
**Post date:** [December 1, 2008, 7:40pm UTC](https://www.ruby-forum.com/t/first-gui-application-using-tk/154439/3 "2008-12-01T19:40:12Z")

</div>

Hidetoshi NAGAI wrote:

> From: Yuri R. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
> Subject: First GUI application using TK  
> Date: Sun, 30 Nov 2008 01:35:11 +0900  
> Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
> 
> > I’ve installed Ruby 1.8.6 and ActiveTcl 8.5.5 but when i try to execute  
> > this code  
> > (snip)  
> > i received an errore message like "Impossible to run the application.  
> > tk84.dll has not founded. Maybe a new installation could solve the  
> > problem.
> 
> Your tcltklib.dll (installed a part of your Ruby 1.8.6) will be  
> compiled for Tcl/Tk 8.4.x.  
> Please use ActiveTcl 8.4.x or recompile tcltklib.dll for Tcl/Tk 8.5.x.
> 
> If you want to recompile tcltklib.dll, please read  
> ext/tk/README.ActiveTcl and ext/tk/README.tcltklib.
> 
> # When tcltklib.dll is compiled for Tcl/Tk 8.4.x with
> 
> # –enable-tcltk-stubs (and link to tclstub8.4/tkstub8.4),
> 
> # possibly the tcltklib.dll works with DLLs of Tcl/Tk 8.5.x.

Thank you very much!

I’ve installed ActiveTcl 8.4.x and now it works fine. 😉
