Forum: Ruby First GUI application using 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.
B1a2c42e3ef621aac7af66c506ad7a4e?d=identicon&s=25 Cozza Amara (cozzaamara)
on 2008-11-29 17:40
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. :)
E4f967492dbd03c526cc9b397e68021d?d=identicon&s=25 Hidetoshi NAGAI (Guest)
on 2008-12-01 03:24
(Received via mailing list)
From: Yuri Redaelli <y.redaelli@ngi.it>
Subject: First GUI application using TK
Date: Sun, 30 Nov 2008 01:35:11 +0900
Message-ID: <8933970548618911a51e9d206e021f5e@ruby-forum.com>
> 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.
B1a2c42e3ef621aac7af66c506ad7a4e?d=identicon&s=25 Cozza Amara (cozzaamara)
on 2008-12-01 19:40
Hidetoshi NAGAI wrote:
> From: Yuri Redaelli <y.redaelli@ngi.it>
> Subject: First GUI application using TK
> Date: Sun, 30 Nov 2008 01:35:11 +0900
> Message-ID: <8933970548618911a51e9d206e021f5e@ruby-forum.com>
>> 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. ;)
This topic is locked and can not be replied to.