From: James Edward Gray II Date: 2005-11-28T01:40:04+09:00 Subject: Re: Mac OS X TK On Nov 26, 2005, at 7:30 PM, Hidetoshi NAGAI wrote: > From: James Edward Gray II > Subject: Re: Mac OS X TK > Date: Sun, 27 Nov 2005 03:28:18 +0900 > Message-ID: <248A7B57-9D17-4D46-AA09-AFF2769581FC@grayproductions.net> >> Neo:~$ ruby -e 'p $:' >> ["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/ >> 1.8/powerpc-darwin8.3.0", "/usr/local/lib/ruby/site_ruby", "/usr/ >> local/lib/ruby/1.8", "/usr/local/lib/ruby/1.8/powerpc- >> darwin8.3.0", "."] >> Neo:~$ ls /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/t* >> /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tcltklib.bundle >> /usr/local/lib/ruby/1.8/powerpc-darwin8.3.0/tkutil.bundle > > Hmm... Don't you have tkutil.* in > "/usr/local/lib/ruby/site_ruby/1.8/powerpc-darwin8.3.0" ? > ^^^^^^^^^ > If don't, that is very strange. No, that directory appears to bee empty. It's also empty for Apple's install though, where TK is working. > I don't understand what is happen in your environment. > Can 'ext/tcltklib/README.1st' ('ext/tk/README.tcltklib' on > ruby-1.8.4 or 1.9) help you? I read those and tried building Ruby 1.8.2 with: ./configure --enable-pthread --with-tcllib=tcl8.4 --with-tklib=tk8.4 --with-tcl-dir=/usr --with-tk-dir=/usr --with-tcltk-framework=/System/ Library/Frameworks --with-tcl-framework-header=/System/Library/ Frameworks/Tcl.framework/Headers/ --with-tk-framework-header=/System/ Library/Frameworks/Tk.framework/Headers/ I'm still seeing errors: /usr/local/lib/ruby/1.8/tk/event.rb:397: undefined method `_define_attribute_aliases' for CallbackSubst:Class (NoMethodError) from /usr/local/lib/ruby/1.8/tk.rb:804 from rrobots.rb:106:in `require' from rrobots.rb:106 James Edward Gray II