From: Hidetoshi NAGAI Date: 2006-03-27T11:58:53+09:00 Subject: Re: Help with tkHTML (specifically, require 'tkextlib/tkHTML' fails to find package) From: Randy Kramer Subject: Help with tkHTML (specifically, require 'tkextlib/tkHTML' fails to find package) Date: Sun, 26 Mar 2006 06:01:44 +0900 Message-ID: <200603251600.10939.rhkramer@gmail.com> > It fails at the step =require 'tkextlib/tkHTML'= with a message: > > 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 > from (irb):2 > > What I've done (generally): > > I may have confused the issue, because I've downloaded and installed both > ActiveTCL and the standalone ktHTML packages. I installed the ktHTML package > first, and tried the example before installing ActiveTCL, but got the same > result. I think that your tcltklib.so doesn't load ActiveTcl library. Please run "/usr/local/bin/ruby -r tk -e 'p Tk::TCL_LIBRARY'". Probably, it shows the path your original (not ActiveTcl) Tcl/Tk directory. You may control the path with LD_LIBRARY_PATH or TCL_LIBRARY environment variable. For example, "TCL_LIBRARY=/usr/local/ActiveTcl/lib/tcl8.4 /usr/local/bin/ruby -r tk -e 'p Tk::TCL_LIBRARY'". You can get the support status of Tk extensions on your environment by "/usr/local/lib/ruby/1.8/tkextlib/pkg_checker.rb". Possibly, you get different result between "/usr/local/bin/ruby /usr/local/lib/ruby/1.8/tkextlib/pkg_checker.rb" and "TCL_LIBRARY=/usr/local/ActiveTcl/lib/tcl8.4 /usr/local/bin/ruby /usr/local/lib/ruby/1.8/tkextlib/pkg_checker.rb". -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)