I'm working on expanding my knowledge of Ruby to including TCL/TK. Unfortunately, whenever I install the libraries, it does not work as expected. When running IRB to use the TK gem, this the output I get:
When using "sudo apt-get install libtcltk-ruby1.8" everything goes off without a hitch. I just don't know the issue.
irb(main):001:0> require 'tk'
RuntimeError: tcltklib: fail to Tk_Init(). Can't find a usable tk.tcl in the following directories:
/usr/share/tcltk/tcl8.5/tk8.5 /usr/lib/tk8.5 /usr/local/lib/tcltk/tk8.5 /usr/local/share/tcltk/tk8.5 /usr/lib/tcltk/tk8.5 /usr/share/tcltk/tk8.5 /lib/tk8.5 /usr/library
This probably means that tk wasn't installed properly.
from /usr/lib/ruby/1.8/tk.rb:1127:in `initialize'
from /usr/lib/ruby/1.8/tk.rb:1127:in `new'
from (irb):1:in `require'