From: Rick DeNatale Date: 2007-10-15T23:05:57+09:00 Subject: Re: Mac OS X Tiger comes with Tk? On 10/15/07, Rick DeNatale wrote: > This thread got me looking into my (rather new) macbooks ruby installation. > > I installed ruby using macports right after getting the machine. I > don't even have tk.rb to require. > > Looking around at macports, it seems that there are TWO port variants > for the ruby port related to tk > one is called just tk, the other mactk. > > I'm not sure but I suspect that the tk variant requires X11, and that > the mactk variant doesn't. > > I'm still very much an OSX newbie, my last Mac was a ppc which > couldn't run anything past OS 8.something, and I've been using Linux > for some time. I'm not clear yet on what's the best way to try to > rebuild ruby using port to add the mactk variant. Do I need to > uninstall and reinstall or is there a better way? Just to follow up, I did this: $port deactivate ruby $port install ruby +mactk This made my current ruby install inactive, then installed a new version with the mactk option. The pickaxe Tk hello world application runs and it is using native OSX widgets. A variation on this is probably the trick to get around the X11 dependency. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/