Tk under Windows XP

Hi,

I am trying learn how to use TK in Ruby to make my first GUI. I have win XP and Installed TK from "ActiveState/ ActiveTcl" .
But When I run this script I get error !. Any ideas why ?.. Do I have to install TK/ under the ruby dir ? if so how?.... now its installed in "c:\tcl\" dir.
Also how to I run this sample script ?, in windows ?.. ..
Also please let me know some basic scripts for TK-RUBY.

Script :
equire 'tk'
hello = TkRoot.new {title "Hello World"}
Tk.mainloop

Error :
C:\ruby\jimmy>ruby hello.rb
c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so: 126: The specified module could not be found.
ror)
         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         from c:/ruby/lib/ruby/1.8/tk.rb:7
         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require'
         from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         from hello.rb:1

C:\ruby\jimmy>

Best Regards,
Jimmy George

Hi,

I guess you just pasted incorrectly, but

equire 'tk'
should be require 'tk'

Anyway, I am not sure how to fix your problem the way you want to.
But if you are willing to have a slightly older version of Ruby, you
can get everything installed correctly and easily with the one click
installer.

Good luck,

Harry

···

On 3/25/07, Jimmy George <mail2jimmy@yahoo.com> wrote:

Script :
equire 'tk'
hello = TkRoot.new {title "Hello World"}
Tk.mainloop

--

Japanese Ruby List Subjects in English

.

But When I run this script I get error !. Any ideas why ?.. Do I have to
install TK/ under the ruby dir ? if so how?.... now its installed
in "c:\tcl\" dir.

Script :
equire 'tk'
hello = TkRoot.new {title "Hello World"}
Tk.mainloop

Error :
C:\ruby\jimmy>ruby hello.rb
c:/ruby/lib/ruby/1.8/i386-mswin32/tcltklib.so: 126: The specified module
could not be found.
ror)
         from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         from c:/ruby/lib/ruby/1.8/tk.rb:7
         from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
`gem_original_require'
         from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
         from hello.rb:1

C:\ruby\jimmy>

Best Regards,
Jimmy George

http://blade.nagaokaut.ac.jp/cgi-bin/vframe.rb/ruby/ruby-talk/235467?235196-236313+split-mode-vertical

Harry

···

On 3/25/07, Jimmy George <mail2jimmy@yahoo.com> wrote:

--

Japanese Ruby List Subjects in English