# Getting tk working on ubuntu

**URL:** <https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751>\
**Category:** Ruby\
**Created:** [September 4, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751 "2007-09-04T17:47:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stewbawka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Post date:** [September 4, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751/1 "2007-09-04T17:47:17Z")

</div>

I need some help getting tk working on ubuntu… I reinstalled ruby  
from source being under the impression that tk would be built-in this  
time around. i still get:

LoadError: no such file to load – tk

when i try require ‘tk’

i have apt-get installed: libtcltk-ruby , tk8.4-dev …

please help!

Stuart

---

<div class="post-metadata">

**Author:** ![stewbawka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Post date:** [September 5, 2007, 3:46am UTC](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751/2 "2007-09-05T03:46:05Z")

</div>

> LoadError: no such file to load – tk

You need the packages tcl and tk installed, possibly the -dev packages  
for each of them.  
Best to seek the versions in ubuntu that work with your OS version if  
you want binary packages  
Installing tcl and tk from source should work.

Gerald

---

<div class="post-metadata">

**Author:** ![stewbawka](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/a9adbd/32.png) [@stewbawka](https://www.ruby-forum.com/u/stewbawka)\
**Post date:** [September 5, 2007, 7:16pm UTC](https://www.ruby-forum.com/t/getting-tk-working-on-ubuntu/113751/3 "2007-09-05T19:16:43Z")

</div>

On Tue, 04 Sep 2007 18:42:19 -0700, Gerald M. wrote:

> > LoadError: no such file to load – tk
> 
> You need the packages tcl and tk installed, possibly the -dev  
> packages for each of them. Best to seek the versions in ubuntu  
> that work with your OS version if you want binary packages  
> Installing tcl and tk from source should work.
> 
> Gerald

Mu Ubuntu install has:  
tcl18.4-dev  
tk8.4-dev  
tcl8.4  
tk8.4  
tk8.4-doc  
libtk-ruby  
libcltk-ruby

-which are up to date with the latest ruby and the current Ubuntu.  
All packages installed with aptitude.

–  
Chris G.

He who laughs last thinks slowest!
