From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "anne001" Newsgroups: gmane.emacs.help Subject: can one run tk/Ruby gui code from an emacs shell with compile? Date: 18 Nov 2005 09:11:51 -0800 Organization: http://groups.google.com Message-ID: <1132333911.001887.281210@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1132334130 5964 80.91.229.6 (18 Nov 2005 17:15:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2005 17:15:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 18 18:15:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Ed9pc-0005jR-00 for ; Fri, 18 Nov 2005 18:15:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ed9pa-0006N7-RD for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2005 12:15:22 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: 70.19.143.102 Original-X-Trace: posting.google.com 1132333916 11941 127.0.0.1 (18 Nov 2005 17:11:56 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 18 Nov 2005 17:11:56 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en) AppleWebKit/312.1 (KHTML, like Gecko) Safari/312,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=70.19.143.102; posting-account=9049VgwAAABYJfAgZ0LyU3pobPiwgZ36 Original-Xref: shelby.stanford.edu gnu.emacs.help:135550 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31146 Archived-At: 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