# Tk

**URL:** <https://rubytalk.org/t/tk/3862>\
**Category:** ruby-talk\
**Created:** [30 December 2002 23:27 UTC](https://rubytalk.org/t/tk/3862 "2002-12-30T23:27:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gt1](https://avatars.discourse-cdn.com/v4/letter/g/b5e925/32.png) [@gt1](https://rubytalk.org/u/gt1)\
**Post date:** [30 December 2002 23:27 UTC](https://rubytalk.org/t/tk/3862/1 "2002-12-30T23:27:59Z")

</div>

In order to require ‘tk’, must you extconf.rb tcltklib and tk?

when I extconf for tcltklib, i get this…  
checking for t\_open() in -lnsl… no  
checking for socket() in -lsocket… no  
checking for dlopen() in -ldl… no  
checking for log() in -lm… yes  
checking for tcl.h… yes  
checking for tk.h… no

Which is bull, because there IS a tk.h file.

extconf for tk seemed to have went fine though.

However require ‘tk’ fails:

> require ‘tk’  
> ERR: /usr/lib/ruby/1.6/tk.rb:7:in `require’: No such file to load –  
> tcltklib

tkutil works:

> require ‘tkutil’  
> true

I just wonder if Fink is mucking it up?

% echo $path  
/macunix/bin /macunix/sbin /bin /sbin /usr/bin /usr/sbin /usr/X11R6/bin

the macunix directory is where fink resides.

:-\<

![](https://canada1.discourse-cdn.com/flex029/uploads/rubytalk/original/1X/95aaa58ed0e4c9b72c12350000813d5396a18362.jpg)

---

<div class="post-metadata">

**Author:** ![ts1](https://avatars.discourse-cdn.com/v4/letter/t/a8b319/32.png) [@ts1](https://rubytalk.org/u/ts1)\
**Post date:** [31 December 2002 08:15 UTC](https://rubytalk.org/t/tk/3862/2 "2002-12-31T08:15:05Z")

</div>

> Which is bull, because there IS a tk.h file.

Well, tk.h include some others file like Xlib.h. If these files are  
missing extconf.rb will give an error.

Guy Decoux
