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 G.