# How can install Tk8.5 to Ruby1.8.6

**URL:** <https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147>\
**Category:** Ruby\
**Created:** [April 29, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147 "2008-04-29T12:12:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![try4rb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Post date:** [April 29, 2008, 12:12pm UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147/1 "2008-04-29T12:12:11Z")

</div>

I am a newbie for Ruby, I d/l one-click of Ruby1.8.6 and install ,then  
it well used, I have learn ruby with GUI pratice , and found that TK8.5  
is available ,but after installation, I try to simple run code with RDE  
editor, it shown error as

## ----- code ----------------- require “tk” root = TkRoot.new{title “Test root”} Tk.mainloop

I got error message shown " This application has failed to star  
because tk84.dll was not found"

I try copied “tk85.dll” from “c:\Tcl” directory “c:\ruby186\_25\lib”  
and attemp to fix it by several method , but there’s nothing result , Do  
any body ever found problem like this ? , please help me for suggestion.

---

<div class="post-metadata">

**Author:** ![try4rb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Post date:** [April 29, 2008, 3:32pm UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147/2 "2008-04-29T15:32:56Z")

</div>

Preecha Tu wrote:

> ## ----- code ----------------- require “tk” root = TkRoot.new{title “Test root”} Tk.mainloop
> 
> I got error message shown " This application has failed to star  
> because tk84.dll was not found"

I too have this problem

---

<div class="post-metadata">

**Author:** ![try4rb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Post date:** [April 29, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147/3 "2008-04-29T17:33:42Z")

</div>

From: Preecha Tu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: How can install Tk8.5 to Ruby1.8.6  
Date: Tue, 29 Apr 2008 19:12:12 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> I am a newbie for Ruby, I d/l one-click of Ruby1.8.6 and install ,then  
> (snip)  
> I got error message shown " This application has failed to star  
> because tk84.dll was not found"
> 
> I try copied “tk85.dll” from “c:\Tcl” directory “c:\ruby186\_25\lib”  
> and attemp to fix it by several method , but there’s nothing result , Do  
> any body ever found problem like this ? , please help me for suggestion.

Probably, tcltklib on one-click-ruby is compiled for Tcl/Tk8.4 only.  
You must make tcltklib.so (ext/tk/tcltklib.c) with Tcl/Tk8.5.  
Or, use --enable-tcltkstubs option and make with Tcl/Tk8.4.  
It may work with any of Tcl/Tk8.4 or 8.5.  
Please read “ext/tk/README.tcltklib” about configure options.

---

<div class="post-metadata">

**Author:** ![try4rb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Post date:** [April 30, 2008, 12:12am UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147/4 "2008-04-30T00:12:38Z")

</div>

From: Hidetoshi NAGAI [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
Subject: Re: How can install Tk8.5 to Ruby1.8.6  
Date: Wed, 30 Apr 2008 00:32:47 +0900  
Message-ID: [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> Probably, tcltklib on one-click-ruby is compiled for Tcl/Tk8.4 only.  
> You must make tcltklib.so (ext/tk/tcltklib.c) with Tcl/Tk8.5.  
> Or, use --enable-tcltkstubs option and make with Tcl/Tk8.4.  
> It may work with any of Tcl/Tk8.4 or 8.5.  
> Please read “ext/tk/README.tcltklib” about configure options.

I recommend to try Ruby 1.8.7 (or ruby\_1\_8 on SVN),  
or replace “ext/tk” directory to the one of Ruby 1.8.7.  
It has many changes to support Tcl/Tk8.5.

---

<div class="post-metadata">

**Author:** ![try4rb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc79bd/32.png) [@try4rb](https://www.ruby-forum.com/u/try4rb)\
**Post date:** [April 30, 2008, 4:11am UTC](https://www.ruby-forum.com/t/how-can-install-tk8-5-to-ruby1-8-6/136147/5 "2008-04-30T04:11:17Z")

</div>

On Apr 29, 7:12 am, Preecha Tu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I got error message shown " This application has failed to star  
> because tk84.dll was not found"
> 
> I try copied “tk85.dll” from “c:\Tcl” directory “c:\ruby186\_25\lib”  
> and attemp to fix it by several method , but there’s nothing result , Do  
> any body ever found problem like this ? , please help me for suggestion.

First: during installation of One-Click installer it suggest you  
install ActiveTcl _8.4_ for tk to work with One-Click.

At least, that was the list time I build the installer.

Not 8.5, not 8.3… 8.4.

Second, you need to put the DLL in a directory of PATH, being lib/ not  
one of these. I suggest you move the tk84.dll (from ActiveTcl 8.4) to  
ruby/bin instead.

HTH,
