ubuntu tcltklib absolute beginner question

G

gigaday

I'm trying to start from absolute basics. I have ruby 1.8 installed
and working and want to have a look at the Tk interface.

I get the following:-

irb(main):001:0> require 'tk'
RuntimeError: tcltklib: fail to Tk_Init(). this isn't a Tk
applicationunknown color name "Black"
from /usr/lib/ruby/1.8/tk.rb:1102:in `initialize'
from /usr/lib/ruby/1.8/tk.rb:1102
from (irb):1
irb(main):002:0>

Any ideas please?

Tony
 
G

gigaday

Paul said:
Your system doesn't have the Ruby Tk library installed. Have you considered
upgrading to the current Ruby version? This might solve the problem. Or you
could try to find and install the tk library.

FWIW, the missing library is named "ruby-tcltk -(version)".

I think that I do have all the required libraries installed. Someone
from the tcl/tk team reckons I need a version upgrade, I'll try this.

Thanks for your help.

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,981
Messages
2,570,188
Members
46,731
Latest member
MarcyGipso

Latest Threads

Top