From: Justin Collins Date: 2008-02-18T18:00:15+09:00 Subject: Re: ruby tk -- how do you get it working? 7stud -- wrote: > Hidetoshi NAGAI wrote: > >> From: 7stud -- >> Subject: Re: ruby tk -- how do you get it working? >> Date: Thu, 14 Feb 2008 14:02:46 +0900 >> Message-ID: <5ff4baf0037188ad2e549d7a9a281b6e@ruby-forum.com> >> >>> --output:-- >>> `require': no such file to load -- tcltklib (LoadError) >>> -- >>> >> Well, you have to make or search "tcltklib.so" for your environment. >> Sources of "tcltklib.so" are included in Ruby's source tree. >> But, "tcltklib.so" isn't made, if ext/tk/mkmf.rb can't find proper >> Tcl/Tk libraries at compiling Ruby. >> > > > I don't understand what I'm supposed to do. All I know is that Ruby tk > used to work for me, and it was a hassle to setup. Then I upgraded to > ruby 1.8.6., and now Ruby tk doesn't work. On the other hand, Python tk > worked right out of the box for me. > > Should I forget about Ruby tk and just use wxRuby? > Are you building Ruby from source? If so, try going to the ext/tk directory and running ruby extconf.rb If that seems to work, continue with make and make install. If it does not seem to be finding the Tcl/Tk libraries, try reading the README.tcltklib file in that directory. I know I seemed to have a lot of trouble installing the Ruby Tk stuff as well with the latest Ruby (on Linux, though). -Justin