Starting with Snow Leopard (OS X v10.6), Apple ships a 64-bit ruby ββby default. Unfortunately, the delivery kit does not include 64-bit Tk, so the following ruby ββcode will not be executed:
require 'tk'
Can I enable Tk for Ruby in Snow Leopard and higher? Like installing a 32-bit ruby ββor something else. I tried recompiling Ruby with Tk support, but it's not that simple. The tutorials found in google relate to some parameters in the Ruby ./configurescript that do not exist in the actual Rby code downloaded from the official site :(. Welcome any hints - I have a Ruby application with a Tk GUI and I need my users to use it :)
source
share