version upgrade needed to 8.4.14
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tk8.4 (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: tk8.4
Versions for tcl and tk in Ubuntu 6.06 are 8.4.12, latest version is 8.4.14.
Trying to run Ruby with tk interface and get the following error, which prevents tk being used at all:-
irb(main):001:0> require 'tk'
RuntimeError: tcltklib: fail to Tk_Init(). this isn't a Tk
applicationunknown color name "Black"
from /usr/lib/
from /usr/lib/
from (irb):1
irb(main):002:0>
Advice from the tcl/tk team is as follows:-
I know nothing about Ruby, but that Tk message usually means you've "upgraded" your X server to one that doesn't understand standard color names. As I recall, "Xorg" was a common offender?
If you install a recent enough version of Tk, it includes a workaround for these broken X servers.
Do you have 8.4.14 ? That's the latest.
First to contain the workaround was 8.4.13, I think.
Further research confirms that Tk does not work _at_all_, which supports the view that an upgraded version of Tk is needed to work with Xorg.
The Tk interpreter is called "wish". Trying to run wish produces the following:-
tony@ubuntu: ~/tcltk$ wish ~/tcltk$
Application initialization failed: this isn't a Tk applicationunknown color name "Black"
% tony@ubuntu:
Another way to invoke Tk is via the tcl interpreter, thus:-
tony@ubuntu: ~/tcltk$ tclsh
% package require Tk
this isn't a Tk applicationunknown color name "Black"
%
which does not work either.
Ergo, I believe Tk does not work at all in the Dapper 6.06 release.