From: Hidetoshi NAGAI Date: 2004-11-25T01:28:06+09:00 Subject: Re: Tk on Mac OS X Hi, From: "R. Mark Volkmann" Subject: Tk on Mac OS X Date: Wed, 24 Nov 2004 23:48:59 +0900 Message-ID: <1101306214.41a499660cc0f@mail.ociweb.com> > However, when I run a ruby program that uses Tk I get > /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 You failed to compile tcltklib.so. Although I don't know the reason, maybe the trouble is based on "there are no Tcl/Tk libraries" or "cannot find Tcl/Tk libraries". You may have to give some configure options to determine the names and pathes of Tcl/Tk libraries. # Don't forget "make distclean" to delete the old Makefile. > I think I've following the instructions at > http://www.rubygarden.org/ruby?RubyTkOnOSX > to get Tk installed for use with Mac OS X. I have no experience in MacOS X. So I may be wrong, but the feature of extconf.rb described on the page is probably included to the current version (e.g. 1.8.2-preview3) of extconf.rb. Please try the current (NOT replace!) extconf.rb. To use Tcl/Tk framework, you must give --enable-mac-tcltk-framework option when do configure. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)