[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Problems compiling Ruby/Tk

Ron

8/25/2006 9:11:00 AM

Hi,

I am having problems getting Ruby/Tk to work. Below are the results of
my attempts to get Tk working.

My configure command:
/configure --prefix=/opt/ruby --enable-thread

Results of make:
compiling tk
compiling tk/tkutil
compiling win32ole
compiling zlib

When I try to use tk, I get this output:

irb(main):001:0> require 'tk'
LoadError: no such file to load -- tk
from (irb):1:in `require'
from (irb):1

I have tcl/tk installed on my computer.

My environment is RedHat ES 4.0 32 bit.

What am I doing wrong?

Thanks.

Ron


5 Answers

Mer Gilmartin

8/28/2006 1:40:00 PM

0

Ron wrote:
> Hi,
>
> irb(main):001:0> require 'tk'
> LoadError: no such file to load -- tk
> from (irb):1:in `require'
> from (irb):1


do you have the line
require "tk"

at the top of your program?


--
Posted via http://www.ruby-....

Mer Gilmartin

8/28/2006 2:55:00 PM

0

Ron Reidy wrote:
> Yes. The problem manifests when used in a script or using irb (see
> below).
>
> Really lost on this one and I'm hoping someone can give me some insight.
>
> Thanks.
>
> ron

Know the feeling. Im new to this ruby/tk myself but I got my windows
installation working.

Have you checked directory paths?
Could the address be wrong for tk or ruby?
If its installed maybe the problem is it cant find it?

Ive also seen the line
#!/usr/bin/env ruby
added to programs to help it work.

--
Posted via http://www.ruby-....

David Vallner

8/28/2006 3:07:00 PM

0

Mer Gilmartin wrote:
> Ive also seen the line
> #!/usr/bin/env ruby
> added to programs to help it work.

That shouldn't do a thing to Tk, and especially not on Windows (Cygwin
notwithstanding). Only Linux shells interpret that line.

David Vallner

Mer Gilmartin

8/28/2006 3:15:00 PM

0


> That shouldn't do a thing to Tk, and especially not on Windows (Cygwin
> notwithstanding). Only Linux shells interpret that line.


Ok. Wasnt sure of its purpose.


--
Posted via http://www.ruby-....

Hidetoshi NAGAI

8/29/2006 1:30:00 AM

0