[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Error using Tk

cypher.dp

6/23/2007 1:32:00 PM

Hello everybody !

When I try to use the Tk extension I get an error that the "tk84.dll"
can't be found.
I tried to reinstall it but I didn't find the right gem.
So which gem is it or is there another way to get Tk running ???

Dominik

4 Answers

akbarhome

6/23/2007 2:04:00 PM

0

On Jun 23, 8:32 pm, cypher...@gmail.com wrote:
> Hello everybody !
>
> When I try to use the Tk extension I get an error that the "tk84.dll"
> can't be found.
> I tried to reinstall it but I didn't find the right gem.
> So which gem is it or is there another way to get Tk running ???
>
> Dominik

Install tk first.
http://tcl.activestate.com/softw...

cypher.dp

6/23/2007 2:44:00 PM

0

Thanks a lot !
It's working now.

Dominik


2007/6/23, akbarhome <akbarhome@gmail.com>:
> On Jun 23, 8:32 pm, cypher...@gmail.com wrote:
> > Hello everybody !
> >
> > When I try to use the Tk extension I get an error that the "tk84.dll"
> > can't be found.
> > I tried to reinstall it but I didn't find the right gem.
> > So which gem is it or is there another way to get Tk running ???
> >
> > Dominik
>
> Install tk first.
> http://tcl.activestate.com/softw...
>
>
>

joviyach

7/31/2007 3:02:00 AM

0

On Jun 23, 9:44 am, cypher...@gmail.com wrote:
> Thanks a lot !
> It's working now.
>
> Dominik
>
> 2007/6/23, akbarhome <akbarh...@gmail.com>:
>
> > On Jun 23, 8:32 pm, cypher...@gmail.com wrote:
> > > Hello everybody !
>
> > > When I try to use the Tk extension I get an error that the "tk84.dll"
> > > can't be found.
> > > I tried to reinstall it but I didn't find the right gem.
> > > So which gem is it or is there another way to get Tk running ???
>
> > > Dominik
>
> > Install tk first.
> >http://tcl.activestate.com/softw...

I am having similar problems with Ruby and Tk, I installed Tcl (which
appeared to be successful), and it still is not working. I receive
several errors. I even attempted to copy the tk84.dll into the Ruby/
bin folder as I had seen suggested somewhere else, but that didn't
work either. Any other suggestions?

This is what I am getting...

C:\ruby>canvas.rb
c:/ruby/lib/ruby/1.8/tk.rb:1102:in `initialize': Can't find a usable
init.tcl in
the following directories: (RuntimeError)
c:/ruby/lib/tcl8.4 c:/ruby/lib/tcl8.4 c:/lib/tcl8.4 c:/ruby/
library c:/library c:/tcl8.4.15/library



This probably means that Tcl wasn't installed properly.
from c:/ruby/lib/ruby/1.8/tk.rb:1102:in `new'
from c:/ruby/lib/ruby/1.8/tk.rb:1102
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `ge
m_original_require'
from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
27:in `re
quire'
from C:/ruby/canvas.rb:1

joviyach

7/31/2007 12:07:00 PM

0

On Jul 30, 10:02 pm, joviyach <joviy...@gmail.com> wrote:
> On Jun 23, 9:44 am, cypher...@gmail.com wrote:
>
>
>
> > Thanks a lot !
> > It's working now.
>
> > Dominik
>
> > 2007/6/23, akbarhome <akbarh...@gmail.com>:
>
> > > On Jun 23, 8:32 pm, cypher...@gmail.com wrote:
> > > > Hello everybody !
>
> > > > When I try to use the Tk extension I get an error that the "tk84.dll"
> > > > can't be found.
> > > > I tried to reinstall it but I didn't find the right gem.
> > > > So which gem is it or is there another way to get Tk running ???
>
> > > > Dominik
>
> > > Install tk first.
> > >http://tcl.activestate.com/softw...
>
> I am having similar problems with Ruby and Tk, I installed Tcl (which
> appeared to be successful), and it still is not working. I receive
> several errors. I even attempted to copy the tk84.dll into the Ruby/
> bin folder as I had seen suggested somewhere else, but that didn't
> work either. Any other suggestions?
>
> This is what I am getting...
>
> C:\ruby>canvas.rb
> c:/ruby/lib/ruby/1.8/tk.rb:1102:in `initialize': Can't find a usable
> init.tcl in
> the following directories: (RuntimeError)
> c:/ruby/lib/tcl8.4 c:/ruby/lib/tcl8.4 c:/lib/tcl8.4 c:/ruby/
> library c:/library c:/tcl8.4.15/library
>
> This probably means that Tcl wasn't installed properly.
> from c:/ruby/lib/ruby/1.8/tk.rb:1102:in `new'
> from c:/ruby/lib/ruby/1.8/tk.rb:1102
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `ge
> m_original_require'
> from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:
> 27:in `re
> quire'
> from C:/ruby/canvas.rb:1

This is now working.

I copied also the tk8.4 folder from the Tcl\lib directory to the ruby
\lib directory. That resolved the issue.