Mac OS X TK

From: James Edward G. II [email protected]
Subject: Re: Mac OS X TK
Date: Mon, 28 Nov 2005 01:40:04 +0900
Message-ID: [email protected]

Library/Frameworks/Tk.framework/Headers/
Oh! tcltklib on 1.8.2 doesn’t support many of those configure options.
Those were added at ‘May 23 07:27:37 2005 UTC’.
If you want to make 1.8.2 on MacOS X Tiger, you have to edit
‘ext/tcltklib/extconf.rb’.

If you have ‘ext/tk/README.tcltklib’, your 1.8.2 source tree is NOT
pure.
The file was added to ruby_1_8 branch at ‘Nov 2 11:19:28 2005 UTC’,
or to ruby 1.9 at ‘Jan 25 14:31:44 2005 UTC’.

On Nov 27, 2005, at 9:30 PM, Hidetoshi NAGAI wrote:

$ /usr/local/bin/ruby -r tk -e 'p TclTkLib::RELEASE_DATE; p


Neo:~$ /usr/local/bin/ruby -r tcltklib -e ‘p TclTkLib::RELEASE_DATE’
“2004-12-23”
Neo:~$ /usr/local/bin/ruby -r tkutil -e ‘p TkUtil::RELEASE_DATE’
“2004-12-23”
Neo:~$ grep RELEASE_DATE /usr/local/lib/ruby/1.8/tk.rb
RELEASE_DATE = ‘2004-12-24’.freeze

Is this what you expected to see?

James Edward G. II

From: James Edward G. II [email protected]
Subject: Re: Mac OS X TK
Date: Mon, 28 Nov 2005 22:34:51 +0900
Message-ID: [email protected]

Neo:~$ /usr/local/bin/ruby -r tcltklib -e ‘p TclTkLib::RELEASE_DATE’
“2004-12-23”
Neo:~$ /usr/local/bin/ruby -r tkutil -e ‘p TkUtil::RELEASE_DATE’
“2004-12-23”
Neo:~$ grep RELEASE_DATE /usr/local/lib/ruby/1.8/tk.rb
RELEASE_DATE = ‘2004-12-24’.freeze

Is this what you expected to see?

Hmmm…
It tells me that your ‘/usr/local/lib/ruby/1.8/tk.rb’ is derived
from 1.8.2 and your ‘/usr/local/lib/ruby/1.8/tk/event.rb’ is
derived from 1.8.3 (or 1.8.4).
That is very strange.
If you used a really clean source tree and had no errors on
‘make install’, I cannot understand the reason of your trouble.
Probably, the simplest way to escape the trouble is to replace
all files for Ruby/Tk under ‘/usr/local/lib/ruby/1.8/’ to files
under ‘<1.8.2-source>/ext/tk/lib/’ by your hand.

On Nov 27, 2005, at 9:30 PM, Hidetoshi NAGAI wrote:

I pull a fresh copy of the Ruby source whenever I try to build. I
have however upgraded to 1.8.3 and 1.8.4pr1, then downgraded back to
1.8.2. Could my library directories be messed up by this process?

Maybe. Was the fresh copy extracted to a new clean directory?

Yes, I always extract to a clean directory.

James Edward G. II

On Nov 28, 2005, at 11:54 AM, Hidetoshi NAGAI wrote:

Hmmm…
It tells me that your ‘/usr/local/lib/ruby/1.8/tk.rb’ is derived
from 1.8.2 and your ‘/usr/local/lib/ruby/1.8/tk/event.rb’ is
derived from 1.8.3 (or 1.8.4).
That is very strange.
If you used a really clean source tree and had no errors on
‘make install’, I cannot understand the reason of your trouble.
Probably, the simplest way to escape the trouble is to replace
all files for Ruby/Tk under ‘/usr/local/lib/ruby/1.8/’ to files
under ‘<1.8.2-source>/ext/tk/lib/’ by your hand.

Bingo! That fixed it.

Thank you very much for all your tireless help!!!

James Edward G. II

On Nov 28, 2005, at 8:49 PM, Ezra Z. wrote:

i have been watching this thread a little bit because I failed to
get tk working on my custom built ruby on OSX tiger. If its not too
much trouble would you mind summarizing the process you just
figured out to get it working? I would very much appreciate it as I
think many others would as well.

I certainly would. I have Tk working by using the built-in /usr/bin/
ruby (which I actually renamed /usr/bin/ruby_apple to be clear), but
I’d love to have it working with my home-grown build in /usr/local/
bin/ruby

On 11/28/05, Gavin K. [email protected] wrote:

bin/ruby
If you have not yet installed 1.8.3 / 1.8.4, you shouldn’t have any
polution in your directories…
just rebuild 1.8.2 as described at the top of this page:
http://www.rubygarden.org/ruby?RubyTkOnOSX

After months of failing at getting Tk installed, I followed those
instructions and it just ‘worked’

On Nov 28, 2005, at 11:44 AM, James Edward G. II wrote:

all files for Ruby/Tk under ‘/usr/local/lib/ruby/1.8/’ to files
under ‘<1.8.2-source>/ext/tk/lib/’ by your hand.

Bingo! That fixed it.

Thank you very much for all your tireless help!!!

James Edward G. II

James-

i have been watching this thread a little bit because I failed to

get tk working on my custom built ruby on OSX tiger. If its not too
much trouble would you mind summarizing the process you just figured
out to get it working? I would very much appreciate it as I think
many others would as well.

Thanks-

-Ezra Z.
WebMaster
Yakima Herald-Republic Newspaper
[email protected]
509-577-7732