Problem with Ruby 1.8 and Tk

hello

wenn I use this line:

require “tk”

the programm works fine with 1.6.8 but with 1.8.0 preview 2 I get this

/usr/local/lib/ruby/1.8/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.8/tk.rb:7 from simple_tk.rb:2:inrequire’
from simple_tk.rb:2

in
/usr/local/lib/ruby/1.8

there is no tcltklib.

with 1.6.8 it is there.

is this a problem with 1.8.0
or do I have to do something more in order to install tcltklib ?

markus

I’m not sure why you are having this problem, but I use 1.8 and tk, including
tcltklib, frequently and I haven’t run into this.

···

On Monday 17 March 2003 01:48 pm, Markus Jais wrote:

hello

wenn I use this line:

require “tk”

the programm works fine with 1.6.8 but with 1.8.0 preview 2 I get this

/usr/local/lib/ruby/1.8/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.8/tk.rb:7 from simple_tk.rb:2:in require’
from simple_tk.rb:2

in
/usr/local/lib/ruby/1.8

there is no tcltklib.

with 1.6.8 it is there.

is this a problem with 1.8.0
or do I have to do something more in order to install tcltklib ?

markus


Seth Kurtzberg
M. I. S. Corp.
480-661-1849
seth@cql.com

Markus Jais wrote:

hello

wenn I use this line:

require “tk”

the programm works fine with 1.6.8 but with 1.8.0 preview 2 I get this

/usr/local/lib/ruby/1.8/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.8/tk.rb:7 from simple_tk.rb:2:in require’
from simple_tk.rb:2

in
/usr/local/lib/ruby/1.8

there is no tcltklib.

with 1.6.8 it is there.

is this a problem with 1.8.0
or do I have to do something more in order to install tcltklib ?

markus

You need to make sure you have libtcl and libtk installed. Look in
/usr/local/lib (or /usr/lib, or wherever) and look for them. I’m
guessing you don’t have them.

That reminds me - it would be nice if there were something descriptive
during the ‘make’ process to let me know that a certain extension isn’t
available. I had to go to ext/tk and try to build it manually to figure
that I had forgotten to reinstall the tcl/tk libs.

Regards,

Dan

···


a = [74, 117, 115, 116, 32, 65, 110, 111, 116, 104, 101, 114, 32, 82]
a.push(117,98, 121, 32, 72, 97, 99, 107, 101, 114)
puts a.pack(“C*”)

Hi,

···

At Tue, 18 Mar 2003 05:48:17 +0900, Markus Jais wrote:

wenn I use this line:

require “tk”

the programm works fine with 1.6.8 but with 1.8.0 preview 2 I get this

/usr/local/lib/ruby/1.8/tk.rb:7:in require': No such file to load -- tcltklib (LoadError) from /usr/local/lib/ruby/1.8/tk.rb:7 from simple_tk.rb:2:in require’
from simple_tk.rb:2

Fixed it at 7 Mar, I guess.


Nobu Nakada