From: Hidetoshi NAGAI Date: 2012-05-18T15:54:37+09:00 Subject: Re: problem installing TkRuby on ubuntu 12.04 From: Bharadwaj Srigiriraju Subject: Re: problem installing TkRuby on ubuntu 12.04 Date: Fri, 18 May 2012 03:19:15 +0900 Message-ID: > The installation process was ruby1.9.1 && tcl8.5 && tk8.5 && > libtcltk-ruby1.9.1 one after the other, but when I require 'tk' in irb, > same error messages come up. > > But, when I removed all those ruby1.9.1 packages and installed > ruby1.8-full (which includes libtcltk-ruby1.8), it works! > > This is what irb shows when I have tcl8.5, rk8.5 with ruby1.8-full : > > require 'tk' > => true > Tk::TK_PATCHLEVEL > => "8.5.11" > > But the same installation with ruby1.9.1 instead shows me the errors in > OP instead when I require 'tk'... and that is the problem. Hmmm... Well, it may be a bug on "ext/tk/extconf.rb". Could you tell me the result of "ldd (your_ruby191_lib_dir)/tcltklib.so"? > BTW, is it possible to GUI program in ruby1.9.1 using tk8.5 on ubuntu? It should be possible. Current Ruby/Tk cannot support Tcl/Tk8.6 (a new command of Tcl8.6 breaks a call stack which includes Ruby's method call), but must work with 8.5. Could you rebuild libtcltk-ruby1.9.1 package with Tcl/Tk8.5.11 libraries? And, if you can, send me "ext/tk/mkmf.log" and "ext/tk/Makefile"? Probably, the rebuilded package will work properly. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) Department of Artificial Intelligence, Kyushu Institute of Technology