Package: libtcltk-ruby1.8
Version: 1.8.4-2
Severity: grave
Justification: renders package unusable
The following ruby script:
#!/usr/bin/ruby1.8
require 'tk'
root = TkRoot.new { title "Test" }
TkLabel.new(root) do
text 'Hello, World!'
pack { padx 15 ; pady 15; side 'left' }
end
Tk.mainloop
fails at line 2 (require 'tk') with the message:
/usr/lib/ruby/1.8/tk.rb:1102:in `initialize': tcltklib: fail to Tk_Init().
this isn't a Tk applicationunknown color name "Black" (RuntimeError)
from /usr/lib/ruby/1.8/tk.rb:1102
from ./tst.rb:2
Same problem when doing 'require "tk"' from irb1.8
If I load the script into vi or vim, the message
'Warning: Color name "black" is not defined'
is written to stderr (Maybe because vi-ruby-mode is doing some interpretation?).
br.
Christian Surlykke
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=da_DK, LC_CTYPE=da_DK (charmap=ISO-8859-1)
Versions of packages libtcltk-ruby1.8 depends on:
ii libc6 2.3.6-7 GNU C Library: Shared libraries
ii libruby1.8 1.8.4-2 Libraries necessary to run Ruby 1.
ii libx11-6 2:1.0.0-6 X11 client-side library
ii tcl8.4 8.4.12-1 Tcl (the Tool Command Language) v8
ii tk8.4 8.4.12-1 Tk toolkit for Tcl and X11, v8.4 -
libtcltk-ruby1.8 recommends no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]