From: sujeet kumar Date: 2005-06-20T22:24:25+09:00 Subject: Re: How to make a browser in Ruby Tk hi, Firstly i add /usr/local/ActiveTcl/lib to /etc/ld.so.conf on top But it didn't work. Then I i uninstall Tcl package of fc3. i used " rpm -qa | grep tcl" rpm -e --nodeps tcl-devel-8.4.7-2 rpm -e --nodeps tk-8.4.7-2 rpm -e --nodeps tcl-8.4.7-2 After this I reinstall ActiveTcl is installed at /usr/local/ActiveTcl and set path. Then i used tar xvzf ruby-1.8.2.tar.gz cd ruby-1.8.2 ./configure --with-tcl-dir=/usr/local/ActiveTcl/ \ --with-tk-dir=/usr/local/ActiveTcl/ \ --with-tcllib=tclstub8.5 \ --with-tklib=tkstub8.5 \ --enable-tcltk-stubs make make install Then , LD_LIBRARY_PATH=/usr/local/ActiveTcl8.5.0.0b3/lib:$LD_LIBRARY_PATH =/usr/local/bin/irb irb(main):001:0> require 'tk' LoadError: libtk8.4.so: cannot open shared object file: No such file or directory - /usr/local/lib/ruby/1.8/i686-linux/tcltklib.so from /usr/local/lib/ruby/1.8/i686-linux/tcltklib.so from /usr/local/lib/ruby/1.8/tk.rb:7 from (irb):1:in `require' from (irb):1 irb(main):002:0> Tk::TK_PATCHLEVEL NameError: uninitialized constant Tk from (irb):2 irb(main):003:0> Tk::AUTO_PATH.list NameError: uninitialized constant Tk from (irb):3 irb(main):004:0> require 'tkextlib/tkHTML' NameError: uninitialized constant TkPackage 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 what should I do? I want to install it any way. For this i can uninstall and reinstall all things.Just tell me what to do.? presently rpm -qa | grep tcl gives tclx-8.3.5-4 db4-tcl-4.2.52-6 tcl-html-8.4.7-2 postgresql-tcl-7.4.6-1.FC3.1 tclx-devel-8.3.5-4 ruby-tcltk-1.8.1-7 tclx-doc-8.3.5-4 Should I erase all the above? I think problem is that Ruby is not taking the path of Tcl/Tk extension correctly. bye 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 16:51:07 +0900 > Message-ID: <734fb92405062000511ea75167@mail.gmail.com> > > 3)sh ./install.sh > > Now, ActiveTcl is installed at /usr/local/ActiveTcl > (snip) > > 8) LD_LIBRARY_PATH=/usr/local/ActiveTcl8.5.0.0b3/lib:$LD_LIBRARY_PATH /usr/local/bin/irb > > That is a wrong path. > You installed ActiveTcl to "/usr/local/ActiveTcl". > So, you have to use > LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib:$LD_LIBRARY_PATH /usr/local/bin/irb > > > 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? > > Probably, that is FC3's Tcl/Tk packages. > > > What sould I do? > > If you fail to load ActiveTcl's libraries instead of FC3's > libraries (even if you use the right LD_LIBRARY_PATH), > you maybe have to remove FC3's Tcl/Tk packages or add > /usr/local/ActiveTcl/lib to /etc/ld.so.conf with > higher priority than FC3's library path. > -- > Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) > >