From: Michal 'hramrach' Suchanek Date: 2004-12-01T07:03:52+09:00 Subject: Re: Tk on Mac OS X On Thu, Nov 25, 2004 at 01:28:06AM +0900, Hidetoshi NAGAI wrote: > 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. Does the tk/ruby in fink package work for you? There are patches updated from 1.6.7 but I do not use Tk so there may be problems. Thanks Michal Suchanek