irb(main):001:0> require 'tk'
LoadError: no such file to load -- tk
from (irb):1:in `require'
from (irb):1
Please check the followings.
(1) Is there `tcltklib.so' on `/opt/ruby/lib/ruby/1.8/i686-linux/' ?
( `1.8' and 'i686-linux' depend on your binary. )
If not, probably, you failed to compile it.
Please read `<ruby-source>/ext/tk/README.tcltklib'.
(2) Did you execute the right binary?
Please check RUBY_VERSION and RUBY_RELEASE_DATE on the running irb.
Do those values denote your new ruby binary?
If not, please try "/opt/ruby/bin/ruby -v /opt/ruby/bin/irb".
Thank you so much. The README file had the answer and all is working.
rr
···
On 8/28/06, Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> wrote:
From: "Ron" <ron.reidy@gmail.com>
Subject: Problems compiling Ruby/Tk
Date: Fri, 25 Aug 2006 18:11:07 +0900
Message-ID: <1156497065.190539.309770@b28g2000cwb.googlegroups.com>
> My configure command:
> ./configure --prefix=/opt/ruby --enable-thread
>
> Results of make:
> compiling tk
> compiling tk/tkutil
> compiling win32ole
> compiling zlib
>
> When I try to use tk, I get this output:
>
> irb(main):001:0> require 'tk'
> LoadError: no such file to load -- tk
> from (irb):1:in `require'
> from (irb):1
Please check the followings.
(1) Is there `tcltklib.so' on `/opt/ruby/lib/ruby/1.8/i686-linux/' ?
( `1.8' and 'i686-linux' depend on your binary. )
If not, probably, you failed to compile it.
Please read `<ruby-source>/ext/tk/README.tcltklib'.
(2) Did you execute the right binary?
Please check RUBY_VERSION and RUBY_RELEASE_DATE on the running irb.
Do those values denote your new ruby binary?
If not, please try "/opt/ruby/bin/ruby -v /opt/ruby/bin/irb".