Ruby Tk

I am trying to run Ruby Tk on UNIX machine. I got the following error message:

···

bldf:xfan1/MyRuby/Tk >> test.rb
/home/bhp/rje/ruby/ruby-1.6.1/ext/tk/lib/tk.rb:7:in require': ld.so.1: ruby: fatal: libtk8.3.so: open failed: No such file or directory - /home/bhp/rje/ruby/ruby-1.6.1/ext/tcltklib/tcltklib.so (LoadError) from /home/bhp/rje/ruby/ruby-1.6.1/ext/tk/lib/tk.rb:7 from test.rb:3:inrequire’
from test.rb:3

Actually /home/bhp/rje/ruby/ruby-1.6.1/ext/tcltklib/tcltklib.so is there.

Can somebody help me out here?

Thanks

John Fan

It seems that you don’t have Tk installed (I’m not talking about Ruby/Tk, but
the Tk library itself). On my system:

$ ls /usr/local/lib/libtk*
/usr/local/lib/libtk8.0.a
/usr/local/lib/libtkstub8.3.a
/usr/local/lib/libtk8.3.so*

Those are the files that you’re missing.

···

On Sat, Mar 01, 2003 at 08:06:07AM +0900, John Fan wrote:

I am trying to run Ruby Tk on UNIX machine. I got the following error message:


bldf:xfan1/MyRuby/Tk >> test.rb
/home/bhp/rje/ruby/ruby-1.6.1/ext/tk/lib/tk.rb:7:in require': ld.so.1: ruby: fatal: libtk8.3.so: open failed: No such file or directory - /home/bhp/rje/ruby/ruby-1.6.1/ext/tcltklib/tcltklib.so (LoadError) from /home/bhp/rje/ruby/ruby-1.6.1/ext/tk/lib/tk.rb:7 from test.rb:3:in require’
from test.rb:3

Actually /home/bhp/rje/ruby/ruby-1.6.1/ext/tcltklib/tcltklib.so is there.

Can somebody help me out here?

Thanks

John Fan


Daniel Carrera
Graduate Teaching Assistant. Math Dept.
University of Maryland. (301) 405-5137