From: Jim Weirich Date: 2003-09-09T11:23:24+09:00 Subject: Re: tcltklib not built with Ruby 1.8 As I wrote earlier, I have solved the problem by forcing CPPFLAGS to include the tcl8.3 directory, but I want to respond to the following suggestions ... On Mon, 2003-09-08 at 21:15, nobu.nokada@softhome.net wrote: > > 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. > > Can you show us the last part of mkmf.log? Here it is ... ==BEGIN==================================================================== have_header: checking for tcl.h... -------------------- gcc -E -I/home/jim/pkgs/ruby-1.8.0.x -I/home/jim/pkgs/ruby-1.8.0.x -g -O2 -o conftest.i conftest.c conftest.c:1:17: tcl.h: No such file or directory checked program was: /* begin */ #include /* end */ -------------------- no ==END====================================================================== Hidetoshi NAGAI , writes: > How about the following? > > $ cd ext/tcltklib > $ CONFIGURE_ARGS='--with-tcl-include=/usr/local/include/tcl8.3/ > --with-tcllib=tcl8.3 --with-tklib=tk8.3 --enable-tcltk_stubs' ruby > extconf.rb If I remove the "local" directory from the above, then it does work. So why doesn't it pick it up automatically? -- -- Jim Weirich jweirich@one.net http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)