Bug#365162: libtcltk-ruby1.8: tcltklib fails during initialization
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-7GNU C Library: Shared libraries ii libruby1.81.8.4-2Libraries necessary to run Ruby 1. ii libx11-6 2:1.0.0-6 X11 client-side library ii tcl8.48.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]
Bug#365162: libtcltk-ruby1.8: tcltklib fails during initialization
Christian Surlykke wrote: 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 This script works fine on my Debian-box. Same problem when doing 'require tk' from irb1.8 I could not reproduce the problem. $ irb1.8 irb(main):001:0 require tk = true Please send me another reproduceable code. -- akira yamada -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#365162: libtcltk-ruby1.8: tcltklib fails during initialization
Err.. I did some further googling and found that it was caused by debian bug #356039 and not related to libtcltk-ruby. My apologies - I should have found that before raising this bug. br. Christian Surlykke fredag 28 april 2006 14:41 skrev akira yamada: Christian Surlykke wrote: 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 This script works fine on my Debian-box. Same problem when doing 'require tk' from irb1.8 I could not reproduce the problem. $ irb1.8 irb(main):001:0 require tk = true Please send me another reproduceable code. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]