From: sujeet kumar Date: 2005-06-20T16:51:07+09:00 Subject: Re: How to make a browser in Ruby Tk Hi, This is summary of what i did. I got ActiveTcl8.5.121397-linux-ix86.tar.gz. 1)I used : tar xvzf ActiveTcl8.5.0.0b3.121397-linux-ix86.tar.gz 2)cd ActiveTcl8.5.0.0b3.121397-linux-ix86.tar.gz 3)sh ./install.sh Now, ActiveTcl is installed at /usr/local/ActiveTcl 4)add ActiveTcl's library directory to your library path i used : export PATH="/usr/local/ActiveTcl/bin:$PATH" 3) i installed ruby tar xvzf ruby-1.8.2.tar.gz 4)cd ruby-1.8.2 5)./configure --with-tcl-dir=/usr/local/ActiveTcl/ \ --with-tk-dir=/usr/local/ActiveTcl/ \ --with-tcllib=tclstub8.5 \ --with-tklib=tkstub8.5 \ --enable-tcltk-stubs 6)make 7)make install 8) LD_LIBRARY_PATH=/usr/local/ActiveTcl8.5.0.0b3/lib:$LD_LIBRARY_PATH /usr/local/bin/irb irb(main):001:0> require 'tk' => true irb(main):002:0> Tk::TK_PATCHLEVEL => "8.4.7" irb(main):003:0> Tk::AUTO_PATH.list => ["/usr/share/tcl8.4", "/usr/share", "/usr/local/lib", "/usr/lib", "/usr/share/tk8.4"] irb(main):004:0> require 'tkextlib/tkHTML' RuntimeError: TkPackage can't find package Tkhtml from /usr/local/lib/ruby/1.8/tk/package.rb:86:in `require' from /usr/local/lib/ruby/1.8/tkextlib/tkHTML/htmlwidget.rb:15 from /usr/local/lib/ruby/1.8/tkextlib/tkHTML.rb:13:in `require' from /usr/local/lib/ruby/1.8/tkextlib/tkHTML.rb:13 from (irb):4:in `require' from (irb):4 9)since i installed ActiveTcl8.5.0.0b3.121397-linux-ix86 but Tk::TK_PATCHLEVEL, gives "8.4.7" Is this mean I have ActiveTcl"8.4.7" installed? Also,Tk::AUTO_PATH.list doesnot give "/usr/local/ActiveTcl/" What sould I do? How to uninstall ActiveTcl"8.4.7" How to add Path of "/usr/local/ActiveTcl/" in k::AUTO_PATH.list Thanks sujeet On 6/20/05, Hidetoshi NAGAI wrote: > From: sujeet kumar > Subject: Re: How to make a browser in Ruby Tk > Date: Mon, 20 Jun 2005 03:40:43 +0900 > Message-ID: <734fb924050619114028ad69ef@mail.gmail.com> > > I installed ActiveTcl8.5.0.0b3.121397-linux-ix86.tar.gz in > > /usr/local/ActiveTcl. > > Now how to " add ActiveTcl's library directory to your library path" > > I tried to use > (snip) > > step what is tclstub8.4 ? should i replace it with tclstub8.5 as my > > package is ActiveTcl8.5.0.0b3.121397-linux-ix86.tar.gz. > > Hmmm.... > I tried on my environment (distribution:: Vine Linux). > ActiveTcl 8.5.0.0b3 was installed at /usr/local/ActiveTcl8.5.0.0b3, > and Ruby configured with ActiveTcl8.5.0.0b3 is installed under /usr/local. > Then, > ------------------------------------------------------------------ > (bash)$ LD_LIBRARY_PATH=/usr/local/ActiveTcl8.5.0.0b3/lib:$LD_LIBRARY_PATH /usr/local/bin/irb > irb(main):001:0> require 'tk' > => true > irb(main):002:0> Tk::TK_PATCHLEVEL > => "8.5a2" > irb(main):003:0> Tk::AUTO_PATH.list > => ["/usr/local/ActiveTcl8.5.0.0b3/lib/tcl8.5", "/usr/local/ActiveTcl8.5.0.0b3/lib", "/usr/local/lib", "/usr/local/ActiveTcl8.5.0.0b3/lib/tk8.5"] > irb(main):004:0> require 'tkextlib/tkHTML' > => true > irb(main):005:0> > ------------------------------------------------------------------ > Please note that "require 'tkextlib/tkHTML'" returns true. > It shows that TkHTML extension is available. > > Cannot you get the same result? > If you don't, please check conflict between ActiveTcl and other > versions of Tcl/Tk libraries. > > If you succeed, please try > "LD_LIBRARY_PATH=/usr/local/ActiveTcl8.5.0.0b3/lib:$LD_LIBRARY_PATH > /usr/local/bin/ruby /usr/local/lib/ruby/1.8/tkextlib/pkg_checker.rb -v". > > -- > Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) > >