From: Jim Weirich Date: 2003-09-09T10:39:04+09:00 Subject: Re: tcltklib not built with Ruby 1.8 On Mon, 2003-09-08 at 17:49, Bermejo, Rodrigo wrote: > Tricky but works .. > > cp /usr/include/tcl8.3/tcl.h to /usr/include Well, not quite. Then it fails to find tclDecls.h. Copying that leads to problems including tk.h ... hmmm, not good. But I got it to work. This is how: I modified the extconf.rb file to include the line ... $CPPFLAGS << "-I/usr/include/tcl8.3" immediately after the require 'mkmkf' line. Then (in the ext/tcltcklib directory) I executed a 'ruby extconf.rb', a 'make', and then a 'make install'. And everything was cool. There looks like there is code in the extconf.rb file to search out the proper version of tcl/tk, but it only runs if the have_header("tcl.h") function returns true. And *that* only is true if you already know where to look for the header. Seems kinda backwards to me, but I don't hack with the mkmf.rb library very often.. -- -- 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)