help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can one run tk/Ruby gui code from an emacs shell with compile?


From: anne001
Subject: can one run tk/Ruby gui code from an emacs shell with compile?
Date: 18 Nov 2005 09:11:51 -0800
User-agent: G2/0.2

I have a small test snipet which runs fine from the terminal prompt
(mac os 10.3.5)
but I can't get it to run from emacs. when I try to compile it in emacs
I get the error
message

/usr/lib/ruby/1.6/tk.rb:7:in `require': No such file to load --
tcltklib (LoadError)
        from /usr/lib/ruby/1.6/tk.rb:7
        from dudruby3.rb:1:in `require'
        from dudruby3.rb:1

I asked for help on the ruby language group and someone thought that
> During compilation invoked from emacs?  You need to check that you
> are getting the correct shell and environment [variables] when emacs
> calls out to the shell to do things.

Does someone on this list know about such things? It just seems ruby on
emacs does not find the
library, while ruby at the terminal does. I don't know where the
libraries are or their names, so I can't help my system much. Or could
it be that emacs is a different ruby from the terminal? panther does
come with an older ruby which I don't know how to uninstall.

Here is my test snipet. I am using ruby 1.8.3  which has a
/ext/tcltklib directory in the raw source which comes with a readme
file I cannot interpret.

require 'tk'
root = TkRoot.new
button = TkButton.new(root) {
text "Hello,Anne"
command proc { puts "I said"}
}
button.pack 
Tk.mainloop



reply via email to

[Prev in Thread] Current Thread [Next in Thread]