From: Nicolas Galler Date: 2003-09-09T11:14:20+09:00 Subject: Re: tcltklib not built with Ruby 1.8 On Mon, 2003-09-08 at 10:51, Weirich, James wrote: > > At Mon, 8 Sep 2003 07:11:31 +0900, > > Jim Weirich wrote: > > > Although it is not finding it, I do have a tcl.h file in > > > /usr/include/tcl8.3. > > > > $ make CONFIGURE_ARGS='--with-tcl-include=/usr/include/tcl8.3' > > Unfortunately, this didn't work. I also tried > --with-tcl-include=/usr/include/tcl8.3 at the ./configure step and that > didn't help either. > > Looking at extconf.rb in ext/tcltklib, it seems that "ruby extconf.rb" > should pick up the include file in my system (but it doesn't). I can debug > this a bit when I get home tonight. > > Any other suggestions are welcome. > I had a problem on debian with both tcl8.3 and tcl8.4 installed - only the headers for tcl8.3 were included (because of some annoying obsession to decompose debian package in 'runtime' and 'devel') but the ruby config was detecting the 8.4 libraries and trying to include files from /usr/include/tcl8.4. Well I guess you could modify the ruby setup script (in ext/tcltklib/extconf.rb or something like that, I guess this would be the nicest thing to do to debug it) or the makefile generated in ext/tcltklib/Makefile, what I did is deinstall the 8.4 library, compile ruby, then reinstall it (actually I first tried installing the 8.4 headers, but then ruby-tk would hang). IF you are having the same problem I had, of course. Nick