Tk

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.

:-<

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