Making module 'tk' work on mac os x

Hello,
I’m trying to use the tk module with tcl and tk I’ve compiled against
X11 on mac os x.
everything compiles fine and I can do require ‘tcltk’ succesfully but
I get an error with
require ‘tk’ :

irb(main):001:0> require 'tk’
RuntimeError: version conflict for package “Tcl”: have 8.3, need 8.4
from /supp/lib/ruby/1.6/tk.rb:474:in new' from /supp/lib/ruby/1.6/tk.rb:474 from (irb):1:inrequire’
from (irb):1

my configure line was:
CFLAGS=’-g -O2 -fno-common -I/usr/X11R6/include -L/usr/X11R6/lib
-I/supp/include -L/supp/lib’ ./configure --prefix=/supp
–exec-prefix=/supp --x-includes=/usr/X11R6/include
–x-libraries=/usr/X11R6/lib --enable-shared

where /supp has my versions of tcl and tk

I even tried using --with-tcl-include etc as per an archived post but
same results.

I’m assuming somehow the compile is using the system default tcl that
apple shipped to /usr/lib and friends which is 8.3 instead of the one
in /supp which is 8.4

any thoughts on how to avoid that without just deleting apple’s tcl?

Brennan

digibren wrote:

Hello,
I’m trying to use the tk module with tcl and tk I’ve compiled against
X11 on mac os x.
everything compiles fine and I can do require ‘tcltk’ succesfully but
I get an error with
require ‘tk’ :

irb(main):001:0> require ‘tk’
RuntimeError: version conflict for package “Tcl”: have 8.3, need 8.4
from /supp/lib/ruby/1.6/tk.rb:474:in new' from /supp/lib/ruby/1.6/tk.rb:474 from (irb):1:in require’
from (irb):1

my configure line was:
CFLAGS=‘-g -O2 -fno-common -I/usr/X11R6/include -L/usr/X11R6/lib
-I/supp/include -L/supp/lib’ ./configure --prefix=/supp
–exec-prefix=/supp --x-includes=/usr/X11R6/include
–x-libraries=/usr/X11R6/lib --enable-shared

where /supp has my versions of tcl and tk

I even tried using --with-tcl-include etc as per an archived post but
same results.

I’m assuming somehow the compile is using the system default tcl that
apple shipped to /usr/lib and friends which is 8.3 instead of the one
in /supp which is 8.4

any thoughts on how to avoid that without just deleting apple’s tcl?

Brennan

Just a question: can ruby be linked directly with the apple’s tcl ?

I don’t have a Mac myself, but if you can give a ruby package working
with tk under macOsX,
I would greatly appreciate :->

jf

···


/ do you play Go? \

http://jeanfrancois.menon.free.fr/rubygo |
\ /


    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            >>----w |
            >>     >>