From: Hidetoshi NAGAI Date: 2012-05-17T18:58:38+09:00 Subject: Re: problem installing TkRuby on ubuntu 12.04 From: Bharadwaj Srigiriraju Subject: problem installing TkRuby on ubuntu 12.04 Date: Wed, 16 May 2012 20:10:46 +0900 Message-ID: <898f4a715a8fae0005d32de3bd4dff38@ruby-forum.com> > Now, in the irb, when I require 'tk' > > it says: > > RuntimeError: tcltklib: fail to Tk_Init(). Can't find a usable tk.tcl in > the following directories: > /usr/share/tcltk/tcl8.5/tk8.5 /usr/lib/tk8.5 > /usr/local/lib/tcltk/tk8.5 /usr/local/share/tcltk/tk8.5 > /usr/lib/tcltk/tk8.5 /usr/share/tcltk/tk8.5 /lib/tk8.5 /usr/library > > /usr/share/tcltk/tk8.5/tk.tcl: version conflict for package "Tk": have > 8.5.10, need exactly 8.5.11 > version conflict for package "Tk": have 8.5.10, need exactly 8.5.11 > while executing > "package require -exact Tk 8.5.11" > (file "/usr/share/tcltk/tk8.5/tk.tcl" line 18) > invoked from within > "source /usr/share/tcltk/tk8.5/tk.tcl" > ("uplevel" body line 1) > invoked from within > "uplevel #0 [list source $file]" Maybe, it is an install trouble on your Tcl/Tk. Does wish8.5 run properly? If not, please ask it at Ubuntu community. Else, do you have multi-versions of libtk8.5.so on your machine? If so, please check dependency of the old version of Tcl/Tk library and remove (should test by rename, first) the old one. -- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) Department of Artificial Intelligence, Kyushu Institute of Technology