September 26th, 2009, 06:47 PM
Programming with TK Library in Ruby
Iam trying to program a simple GUI in Ruby by using TK library.
But when I used require' tk' to load it , This error was happened .
C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/1.8/tk.rb:6:in `require': no such file to load -- tcltklib (LoadError)
from C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/1.8/tk.rb:6
from C:/Program Files/NetBeans 6.7.1/ruby2/jruby-1.2.0/lib/ruby/1.8/tk.rb:3:in `require'
from C:\Documents and Settings\Yousef\My Documents\NetBeansProjects\RubyApplication\lib\main.rb:3
and it will not continue , please help
thanks in Advance
September 26th, 2009, 08:39 PM
Do you have the TK libraries installed on your system? Ruby does not require them when it is installed, only if you intend to use them.
Try verifying that you have correctly installed TK (and related libraries) on your system.
True happiness is not getting what you want, it's wanting what you've already got.