From: James Edward Gray II Date: 2005-11-26T01:50:23+09:00 Subject: Re: Mac OS X TK On Nov 25, 2005, at 10:32 AM, Michal Suchanek wrote: >> I can't get my custom compiled Ruby to do the same. I'm seeing: >> >> $ ruby -r tk -e1 >> /usr/local/lib/ruby/1.8/tk.rb:7:in `require': No such file to load -- >> tcltklib (LoadError) >> from /usr/local/lib/ruby/1.8/tk.rb:7 >> >> If anyone knows what I'm doing wrong there, please let me know. > > tcltklib is the part that requires tcltk iirc. > > Perhaps the extconf did not find the tk libraries when you were > compiling ruby? I got closer using the directions at the top of this page: http://www.rubygarden.org/ruby?RubyTkOnOSX Now I see: $ ruby -r tk -e1 /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 Does that make sense to anyone? Note that this step of the install: cd /usr/local/bin /Developer/Tools/Rez -t APPL Carbon.r -o ruby failed: $ /Developer/Tools/Rez -t APPL Carbon.r -o ruby ### /Developer/Tools/Rez - SysError -5000 during create of "ruby". ### /Developer/Tools/Rez - Fatal error trying to open the resource file "ruby" for writing. Fatal Error! ### /Developer/Tools/Rez - Fatal Error, can't recover. ### /Developer/Tools/Rez - Since errors occurred, ruby's resource fork was not written. I don't think that's the error I am seeing above though. Any tips appreciated. James Edward Gray II