Cannot get Tk extension samples to work with Windows XP

G

Goran Stankovic

--0-876083061-1116186394=:10367
Content-Type: text/plain; charset=us-ascii

Hello,

I cannot get any of Tk extension samples to work on Windows XP. I was able to run them successfully on Linux and Mac.

For example, here is the error that I get when I run ruby BWidget demos:
ruby demo.rb
c:/ruby/lib/ruby/1.8/tk/package.rb:86:in `require': TkPackage can't find package BWidget (RuntimeError)
from c:/ruby/lib/ruby/1.8/tkextlib/bwidget.rb:16
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require__'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:18:in `require'
from demo.rb:3
Exit code: 1


* I have ruby 1.8.2-15 installed. The rest of ruby runs fine.
* I have ActiveTcl 8.4.9.0 installed and I can run the same BWidget (and other) demos as TclTk demos.

My guess is that I am missing some environment variable to connect the ruby bindings with the actual Tk extension libraries. I would appreciate if somebody would help with this.

Regards,

Goran


--0-876083061-1116186394=:10367--
 
H

Hidetoshi NAGAI

From: Goran Stankovic <[email protected]>
Subject: Cannot get Tk extension samples to work with Windows XP
Date: Mon, 16 May 2005 04:46:55 +0900
Message-ID: said:
I cannot get any of Tk extension samples to work on Windows XP. I was able to run them successfully on Linux and Mac. (snip)
My guess is that I am missing some environment variable to connect the ruby bindings with the actual Tk extension libraries. I would appreciate if somebody would help with this.

I don't know whether tcltklib included 1.8.2-15 supports libraries
of Tcl/Tk8.4 or not. Please check Tk::TK_VERSION value.
If the value is "8.3" and 1.8.2-15 doesn't support Tcl/Tk8.4,
please read [ruby-talk:120774].
If 1.8.2-15 supports Tcl/Tk8.4 and Ruby/Tk cannot find the
libarary path as you say, please entry the library path to
Tk::AUTO_PATH.
Probably, one of the easiest way is to add the following line
to the file "<ruby-lib>/tkextlib/setup.rb".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,219
Latest member
KristieKoh

Latest Threads

Top