Hi,all!
I've installed Tk for GUI apps in Ruby. I was getting errors for
require 'tk',
then I've installed libtcltk-ruby and everything run well. BUT, this is
what I get for
require 'tkextlib/tile':
/usr/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage can't find
package tile (RuntimeError)
from /usr/lib/ruby/1.8/tkextlib/tile.rb:24
from converter.rb:2:in `require'
from converter.rb:2
I guess there are some packages missing or what? Help. Thanks!
···
--
Posted via http://www.ruby-forum.com/.
Message-ID: <fdc1088c1cf2e06e857d19a14a85de66@ruby-forum.com>
/usr/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage can't find
package tile (RuntimeError)
You don't need to modify your installed Ruby.
There is no Tile extension installed for your *Tcl/Tk*.
Tile extension is a standard part of Tcl/Tk8.5 or later,
but is not a standard part of Tcl/Tk8.4.
If your Tcl/Tk version is 8.4.x, You must install Tile extension
for your Tcl/Tk.
# ActiveTcl-8.4 package includes Tile extension.
Ruby/Tk uses Tcl/Tk libraries. So, Ruby/Tk can use all Tcl/Tk
extensions, if the extension is installed.
The output of "ruby /usr/lib/ruby/1.8/tkextlib/pkg_cheker.rb"
may be useful.
···
From: Teodor Carstea <teodorcarstea@yahoo.com>
Subject: RuntimeError using Tk with Ruby
Date: Fri, 25 Dec 2009 10:51:22 +0900
--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)