2005/12/31, Mark V. firstname.lastname@example.org:
I have some Ruby code that uses Tk that works fine under Windows.
However, when I try to run it under Linux with Ruby 1.8.4 installed I
get “no such file to load – tcltklib”.
Do I have to take steps to install tcltk? I don’t recall having to do
that under Windows, but perhaps the one-click installer did that for
me. If I need to do this, a pointer to a web page that explains how
would be much appreciated.
I had the same problem. Hard to find a solution on the web, until I
look into my own ruby source tree:
ruby extconf.rb --with-tcl-include=/usr/sfw/include
make && make install
That was for Solaris, but will work on Linux (just change the path to
your Tcl/Tk headers and libraries). Don’t forget to read the README
R. Mark V.
Partner, Object Computing, Inc.
“Between individuals, as between nations, respect for the rights of
others is peace” - Don Benito Juárez