Hidetoshi NAGAI wrote:
The basic library of Tcl/Tk interface on Ruby is ‘tcltklib’.
Please read ‘ext/tk/README.tcltklib’ on the source tree.
Tk library is required to compile ‘tcltklib’.
if you succed to make ‘tcltklib’, you will succeed “require ‘tk’”.
I did. I’ve insured that tcl and tk (with development files) are
installed. I verified that the library files are in /usr/lib, and the
include files are in /usr/include/tcl8.4
I then rebuilt ruby with the following commands:
./configure --prefix=/usr/ --with-tcllib=tcl8.4 --with-tklib=tk8.4
–with-tcl-include =/usr/include/tcl8.4 --with-tcl-lib=/usr/lib
sudo make install
Still, require ‘tk’ fails telling me that tcltklib isn’t there.
I’ve grepped the configure script and the makefiles for ‘tcl’ and ‘tk’
and don’t see where the configuration parameters are even used. grep tk
doesn’t find anything, and grep tcl doesn’t find anything practical.
Beyond that, I don’t see anything to help me diagnose why tcltklib isn’t
Any clues, or is it just not possible to configure?
‘tk’ is a higher order library of Tcl/Tk interface.
If you want to use Tcl interpreters without Tk,
you have to use ‘tcltklib’ directly.
ip = TclTkIp.new(’’, false)
ip.mainloop(false) # if you need