# How I got Tcl/Tk working with Ruby on OS X

**URL:** <https://rubytalk.org/t/how-i-got-tcl-tk-working-with-ruby-on-os-x/40949>\
**Category:** ruby-talk\
**Created:** [26 September 2007 19:35 UTC](https://rubytalk.org/t/how-i-got-tcl-tk-working-with-ruby-on-os-x/40949 "2007-09-26T19:35:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil3](https://avatars.discourse-cdn.com/v4/letter/p/8e7dd6/32.png) [@Phil3](https://rubytalk.org/u/Phil3)\
**Post date:** [26 September 2007 19:35 UTC](https://rubytalk.org/t/how-i-got-tcl-tk-working-with-ruby-on-os-x/40949/1 "2007-09-26T19:35:05Z")

</div>

In case anyone is having trouble with this:

Download the source for Tcl 8.4.16, Tk 8.4.16, and Ruby 1.8.6.

Rename the source directories to tcl, tk, and ruby.

cd tcl/macosx  
./configure  
make \>& make.log  
sudo make install

cd tk/macosx  
./configure  
make \>& make.log  
sudo make install

cd ruby  
./configure --enable-tcltk-framework --with-tcltk-framework=/Library/  
Frameworks --with-tcl-framework-header=/Library/Frameworks/  
Tcl.framework/Headers --with-tk-framework-header=/Library/Frameworks/  
Tk.framework/Headers --enable-pthread  
make \>& make.log  
sudo make install

---

<div class="post-metadata">

**Author:** ![Unbewusst\_Sein2](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@Unbewusst\_Sein2](https://rubytalk.org/u/Unbewusst_Sein2)\
**Post date:** [26 September 2007 21:25 UTC](https://rubytalk.org/t/how-i-got-tcl-tk-working-with-ruby-on-os-x/40949/2 "2007-09-26T21:25:04Z")

</div>

and what to do with an already installed ruby 1.8.6 under /opt  
(MacPorts) ???

> **···**
>
> Phil \<phil.devor@gmail.com\> wrote:
> 
> > Download the source for Tcl 8.4.16, Tk 8.4.16, and Ruby 1.8.6.
> 
> --  
> Une Bévue

---

<div class="post-metadata">

**Author:** ![Kenneth](https://avatars.discourse-cdn.com/v4/letter/k/94ad74/32.png) [@Kenneth](https://rubytalk.org/u/Kenneth)\
**Post date:** [14 October 2007 08:55 UTC](https://rubytalk.org/t/how-i-got-tcl-tk-working-with-ruby-on-os-x/40949/3 "2007-10-14T08:55:19Z")

</div>

for tk

there is no ./configure  
the make returned error...  
how come it is so troublesome just to make tk work.

> **···**
>
> On 9/26/07, Phil \<phil.devor@gmail.com\> wrote:
> 
> > In case anyone is having trouble with this:
> > 
> > Download the source for Tcl 8.4.16, Tk 8.4.16, and Ruby 1.8.6.
> > 
> > Rename the source directories to tcl, tk, and ruby.
> > 
> > cd tcl/macosx  
> > ./configure  
> > make \>& make.log  
> > sudo make install
> > 
> > cd tk/macosx  
> > ./configure  
> > make \>& make.log  
> > sudo make install
> > 
> > cd ruby  
> > ./configure --enable-tcltk-framework --with-tcltk-framework=/Library/  
> > Frameworks --with-tcl-framework-header=/Library/Frameworks/  
> > Tcl.framework/Headers --with-tk-framework-header=/Library/Frameworks/  
> > Tk.framework/Headers --enable-pthread  
> > make \>& make.log  
> > sudo make install
