Problem with Tcl/Tk

Hi,

I’m trying out Tcl/Tk with Ruby, but I get the following:

/usr/local/lib/ruby/1.6/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.6/tk.rb:7 from ./tk_tst.rb:2:inrequire’
from ./tk_tst.rb:2

I’ve got this installed on my Linux System:

tclX-devel-static-8.0.4-7MR
tclX-8.0.4-7MR
tcl-8.0.4-7MR
tcl-devel-static-8.0.4-7MR
tclX-devel-8.0.4-7MR
tcl-devel-8.0.4-7MR

Am I missing something?

Thanks for any hints,
Martin.

Yes. But probably not in the way of external libraries. What’s missing is a
Ruby library, ‘tcltklib.rb’, which is installed from
ruby-1.x.x/ext/tcltklib. Assuming you installed from Ruby source tarball,
you should cd to that directory and compile and install that extension
(“ruby extconf.rb; make; make install” would normally do it). If you got
Ruby on your system from some other means, then let us know.

-michael

···

On Monday 13 January 2003 11:11, collinsm@surfeu.de wrote:

I’m trying out Tcl/Tk with Ruby, but I get the following:

/usr/local/lib/ruby/1.6/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.6/tk.rb:7 from ./tk_tst.rb:2:in require’
from ./tk_tst.rb:2

Am I missing something?

[…]

Yes. But probably not in the way of external libraries. What’s missing is a
Ruby library, ‘tcltklib.rb’, which is installed from
ruby-1.x.x/ext/tcltklib.

It’s an *.so, at least on my system.
You should make sure that you also have the headers tcl.h and tk.h (or
so) somewhere on your system. If they aren’t in the ‘standard place’
(e.g. they are in /usr/include/whatever on Debian) you have to give
configure the right path:
./configure --with-tcl-include=/path/to/header

Urban

···

Michael C. Libby m_libby@andsoforth.com wrote:


What are we today?