From: Michael Satterwhite Date: 2007-02-24T12:01:50+09:00 Subject: Re: tcl interface 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: make clean ./configure --prefix=/usr/ --with-tcllib=tcl8.4 --with-tklib=tk8.4 --with-tcl-include =/usr/include/tcl8.4 --with-tcl-lib=/usr/lib --with-tk-include=/usr/include/tcl8.4 --with-tk-lib=/usr/lib make 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 being made. 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. > For example, > ------------------------------------------------------- > require 'tcltklib' > ip = TclTkIp.new('', false) > ip._invoke('info', 'commands') > # or > # ip._eval('info commands') > ip.mainloop(false) # if you need -- Posted via http://www.ruby-forum.com/.