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]

Reply via email to