From: Hidetoshi NAGAI Date: 2003-09-09T11:42:05+09:00 Subject: Re: tcltklib not built with Ruby 1.8 Hi, From: Jim Weirich Subject: Re: tcltklib not built with Ruby 1.8 Date: Tue, 9 Sep 2003 10:39:04 +0900 Message-ID: <1063071679.4007.59.camel@traken> > 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. From: Jim Weirich Subject: Re: tcltklib not built with Ruby 1.8 Date: Tue, 9 Sep 2003 11:23:24 +0900 Message-ID: <1063074340.4007.86.camel@traken> > > $ 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? Well, in that case, probably you succeed to install by one of the followings. (1) $ cd ext/tcltklib $ CONFIGURE_ARGS='--with-tcl-include=/usr/include/tcl8.3/' ruby extconf.rb (2) $ rm ext/tcltklib/Makefile $ ./configure --with-tcl-include/usr/include/tcl8.3/ 'Makefile's on the ext libraries are not deleted by 'make clean' or 'make distclean', and not re-created by 'configure'. So, if you did 'configure' at once, you must delete 'Makefile's to reflect the new options given to 'configure' command. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)