[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Cannot get Tk extension samples to work with Windows XP

Goran Stankovic

5/15/2005 7:47:00 PM

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

2 Answers

Hidetoshi NAGAI

5/16/2005 8:06:00 AM

0

Joe Van Dyk

5/16/2005 4:49:00 PM

0

On 5/15/05, Goran Stankovic <goran2@swbell.net> wrote:
> 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.

Hi,

I'd remove your previous tk/ruby installations.

Get and install
ftp://ftp.ruby-lang.org/pub/ruby/binaries/mswin32/ruby-1.8.2-20050201-i386-m...

Get and install
http://www.activestate.com/store/languages/register.plex?id...

That should get you working. At least, it did for me.