From: Hidetoshi NAGAI Date: 2005-06-20T11:18:22+09:00 Subject: Re: How to make a browser in Ruby Tk 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)