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