I just tried to run a program that had 3 lines in it:
···
require 'tk’
root = TkRoot.new() { title “Hello, world!” }
Tk.mainloop()
but I get this error message:
D:\Code\ruby>d:\ruby\bin\ruby.exe tk_helloworld.rb
d:\ruby\bin\ruby.exe tk_helloworld.rb
d:/ruby/lib/ruby/site_ruby/1.7/tk.rb:485:in `initialize’: Can’t find a
usable init.tcl in the following directories: (RuntimeError)
{} d:/ruby/lib/tcl8.3 d:/ruby/lib/tcl8.3 d:/lib/tcl8.3
d:/lib/tcl8.3/library d:/library d:/…/tcl8.3/library
…/tcl8.3/library
This probably means that Tcl wasn’t installed properly.
from d:/ruby/lib/ruby/site_ruby/1.7/tk.rb:485:in `new'
from d:/ruby/lib/ruby/site_ruby/1.7/tk.rb:485
from tk_helloworld.rb:1:in `require'
from tk_helloworld.rb:1
D:\Code\ruby
init.tcl is in d:\ruby\tcl\lib\tcl8.3
For some reason the installer sets it there but the program is not
looking there??
Anyone know how this can be corrected?