From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: can one run tk/Ruby gui code from an emacs shell with compile? Date: Fri, 18 Nov 2005 19:18:04 +0100 Message-ID: <36d88fdb7701f0cd9489bd8d2a6668f0@Web.DE> References: <1132333911.001887.281210@g14g2000cwa.googlegroups.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132356218 4163 80.91.229.6 (18 Nov 2005 23:23:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 Nov 2005 23:23:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 19 00:23:20 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 1EdAoa-0002Gz-00 for ; Fri, 18 Nov 2005 19:18:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdAoZ-00071t-9e for geh-help-gnu-emacs@m.gmane.org; Fri, 18 Nov 2005 13:18:23 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdAoM-00071o-CO for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:18:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdAoK-000707-Od for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:18:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdAoK-0006zz-M7 for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:18:08 -0500 Original-Received: from [217.72.192.225] (helo=smtp07.web.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EdAoK-0003tc-DG for help-gnu-emacs@gnu.org; Fri, 18 Nov 2005 13:18:08 -0500 Original-Received: from [84.245.189.191] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1EdAoI-0005C3-00; Fri, 18 Nov 2005 19:18:07 +0100 In-Reply-To: <1132333911.001887.281210@g14g2000cwa.googlegroups.com> Original-To: "anne001" X-Mailer: Apple Mail (2.623) X-Sender: Peter_Dyballa@web.de 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:31152 Archived-At: Am 18.11.2005 um 18:11 schrieb anne001: > 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) > Which Emacs are you using? Carbon, Cocoa/Aqua, X11, or Apple's /usr/bin/emacs which only runs in a terminal? You could do this, once in Terminal, once in Emacs' shell: env | sort -o Terminal.environment env | sort -o Emacs.environment Finally do somewhere (would work in Emcas with ediff too): diff Terminal.environment Emacs.environment This would reveal differences in the runtime environments and might lead you to the difference that causes the different behaviour. Once you've found that difference you can record it in ~/.MacOSX/environment.plist (see Apple's http://developer.apple.com/qa/qa2001/qa1067.html). This file is read by Mac OS X applications (like Carbon or Cocoa/Aqua Emacsen) and helps them to find things in the UNIX world. It won't help /usr/bin/emacs or GNU Emacs in X11 ... Are you using different shells in Emacs and in Terminal? How are you executing Ruby? From inside a Makefile? -- Greetings Pete There's no place like ~ (UNIX Guru)