Linking to the tk directory

J

John Slimick

I am new to ruby, so I need some help.
I want to use tk widgets when I teach ruby.
I have downloaded and installed the ruby-1.8.6-p110
distribution. When I tried to do the
"Hello World" window in ruby/tk, irb
could not find tk. I can find the tk directory
which is at:

/home/fred/Desktop/ruby/ruby-1.8.6-p110/ext/tk

Is there a shell variable I need to set that
contains where tk is? I couldn't find much
help on google.

Thanks in advance
john slimick
(e-mail address removed)
 
M

Morton Goldberg

I am new to ruby, so I need some help.
I want to use tk widgets when I teach ruby.
I have downloaded and installed the ruby-1.8.6-p110
distribution. When I tried to do the
"Hello World" window in ruby/tk, irb
could not find tk. I can find the tk directory
which is at:

/home/fred/Desktop/ruby/ruby-1.8.6-p110/ext/tk

That directory only contains the Ruby library that acts as a bridge
between Ruby and Tcl/Tk.
Is there a shell variable I need to set that
contains where tk is? I couldn't find much
help on google.

Probably not a shell variable problem (although there is a chance it
is a PATH problem). It is more likely that Tcl/Tk is not installed on
your system. Perhaps this URL will help.

http://ruby.about.com/od/desktop/p/ruby_tk.htm

Regards, Morton
 

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

Staff online

Members online

Forum statistics

Threads
474,270
Messages
2,571,352
Members
48,034
Latest member
BettinaArn

Latest Threads

Top