On Feb 18, 2008, at 10:28 PM, 7stud -- wrote:

> Morton Goldberg wrote:
>> On Feb 18, 2008, at 3:05 PM, 7stud -- wrote:
>>
>>>> my iMac I get
>>>
>>> /usr/lib/ruby/1.8/universal-darwin8.0/tcltklib.bundle
>>>
>>> Now what do I do?
>>
>> Ask yourself these questions: Is /usr/lib/ruby/1.8 where Ruby 1.8.6
>> is installed?
>
> How would I know that?

<snip>

Here is one way to do it:

~ mg: irb
irb(main):001:0> RUBY_VERSION
=> "1.8.2"
irb(main):002:0> $:
=> ["/usr/lib/ruby/site_ruby/1.8", "/usr/lib/ruby/site_ruby/1.8/ 
powerpc-darwin8.0", "/usr/lib/ruby/site_ruby", "/usr/lib/ruby/1.8", "/ 
usr/lib/ruby/1.8/powerpc-darwin8.0", "."]

>> Or is 1.8.6 in some other directory?
>
> I did this:
>
> $ sudo find / -name *1.8.6* -print
>
> and I got this:
>
> /usr/local/lib/libruby.1.8.6.dylib
>
>> If it's in some
>> other directory, why didn't two versions of tcltklib.bundle turn up
>> from find?
>>
>> I'm thinking that your 1.8.6 installation is incomplete -- that it's
>> possible you didn't install tcltklib.bundle when you installed 1.8.6.
>>
>
> This is what I did to install ruby 1.8.6:

<snip>

> At the one click installer website it says this:
>
> ----
> This package is the most simple way to equip your Macintosh Apple OSX
> System with Ruby - similar to the Windows Ruby One-Click Installer. It
> replaces the broken Readline library, updates to a current version of
> SQLite3 and prepares your OSX for Rails, which needs at least Ruby  
> 1.8.4
> to run. The current Ruby Version is 1.8.6 (1.8.5 is recommended for
> Rails) and Rubygems 0.9.4.
>
> This package's intention is to remain small while being a Universal
> Binary that serves everything to deploy Ruby Applications on OSX
> Machines - Cheetah, Puma, Jaguar, Panther, Tiger or Leopard. You don't
> need to compile anything and you don't need Apple's Developer Tools
> (xcode) installed.
>
> The Ruby One-Click Installer for OSX is adding the installed files to
> /usr/local, not replacing Apple's original Ruby. That means you can
> easily uninstall this package or switch to Apple's Ruby again.

It looks to me as if your 1.8.6 install didn't include the Ruby/Tk  
libraries, which would explain why Ruby/Tk doesn't work when you run  
1.8.6, and as if the installer you used is aimed at supporting Rails  
rather than being a full-bore Ruby install.

Regards, Morton