From: Dave Baldwin Date: 2005-11-17T02:37:32+09:00 Subject: Re: rubycocoa error "No such file to load -- tcltklib (LoadError)" On 16 Nov 2005, at 16:37, anne001 wrote: > I installed tcltk from > http://prdownloads.sourceforge.net/tcltkaqua/ > TclTkAquaBI-8.4.9.0.dmg?download > > I reinstalled ruby 1.8.3 on mac 10.3 with the option > ../configure --enable-pthread --enable-mac-tcltk-framework > > rubycocoa gives me "No such file to load -- tcltklib (LoadError)" > I find references to a readme file in ext but I don't know where that > ext directory is on the mac. How do I find the library and set the > path > on my mac? > > I got a snipet from ruby developer's which runs at the ruby command > line, but not ruby cocoa. > require 'tk' > root = TkRoot.new > button = TkButton.new(root) { > text "Hello,Anne" > command proc { puts "I said"} > } > button.pack > Tk.mainloop > > rubycocoa does work with puts "hello". > > thank you for your help rubycocoa is the Ruby interface bindings to the native cocoa GUI toolkit of the Mac. tcl is a scripting language and its standard GUI toolkit is tk that uses non native widgets - i.e. has its own unique look and feel. tclTkAqua is the tcl Tk toolkit that uses native Mac widgets The tk toolkit is widely ported and many other bindings to it have been produced, including Ruby. If you are using rubycocoa then it doesn't make sense to me why you would want to use tcl, tk or tckTkAqua as you are trying to mix different GUI toolkits. Dave.