sujeet kumar
6/20/2005 7:51:00 AM
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 <nagai@ai.kyutech.ac.jp> wrote:
> From: sujeet kumar <sujeetkr@gmail.com>
> 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