# Tcl/Tk on Mac OS X: LoadError

**URL:** <https://www.ruby-forum.com/t/tcl-tk-on-mac-os-x-loaderror/108824>\
**Category:** Rails\
**Created:** [July 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/tcl-tk-on-mac-os-x-loaderror/108824 "2007-07-07T17:59:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![isakk](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/aeb1de/32.png) [@isakk](https://www.ruby-forum.com/u/isakk)\
**Post date:** [July 7, 2007, 5:59pm UTC](https://www.ruby-forum.com/t/tcl-tk-on-mac-os-x-loaderror/108824/1 "2007-07-07T17:59:36Z")

</div>

Hello.

I have a problem with Tcl/Tk in OS X, each time i try requiring tk, i  
get this:

irb(main):001:0\> require ‘tk’  
LoadError: no such file to load – tk  
from (irb):1:in `require’  
from (irb):1  
irb(main):002:0\>

I am positive that I have Tcl/Tk installed - i’ve installed the binary  
from ActiveState and I’ve tried compiling Ruby 1.8.6 myself and I’ve  
tried installing it with MacPorts, but nonetheless it doesn’t work.  
I’ve tried ./configure with --enable-mac-tcltk-framework but it seems  
that nothing works.

I’ve also tried tclsh and wish, and i even made a little button in  
wish from the terminal, so I am positive that Tcl/Tk is installed, but  
Ruby just doesn’t know where or something like that.

I’ve tried googling and searched this forum, and found people with the  
same problem, but I never found any solution that worked for me.

What can I do?

Mac OS X 10.4.10
