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: Sat, 19 Nov 2005 16:03:47 +0100 Message-ID: <021919884020e159f7dcbb04ee332109@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1132412912 2582 80.91.229.2 (19 Nov 2005 15:08:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 Nov 2005 15:08:32 +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 16:08:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EdUJP-00051d-TH for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 16:07:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdUJO-0002L5-N6 for geh-help-gnu-emacs@m.gmane.org; Sat, 19 Nov 2005 10:07:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EdUFv-00023e-Gc for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 10:03:56 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EdUFt-00023M-RV for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 10:03:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EdUFt-00023F-4i for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 10:03:53 -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 1EdUFs-0001nF-K3 for help-gnu-emacs@gnu.org; Sat, 19 Nov 2005 10:03:53 -0500 Original-Received: from [84.245.189.228] (helo=[192.168.1.2]) by smtp07.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.105 #317) id 1EdUFq-0003U1-00; Sat, 19 Nov 2005 16:03:50 +0100 In-Reply-To: Original-To: Anne G 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:31169 Archived-At: Am 19.11.2005 um 15:19 schrieb Anne G: > PATH=/usr/bin:/bin:/usr/sbin:/sbin:/Users/anne:/usr/local/bin:/usr/ > X11R6/bin > PWD=/Users/anne/Desktop > SHELL=/bin/bash > SHLVL=1 > USER=anne > _=/usr/bin/env > __CF_USER_TEXT_ENCODING=0x1F6:0:0 > > The terminal shell still works, emacs does not. Same error. Yes, because PATH still starts with /usr/bin:/bin, so Apple's ruby in /usr/bin is found first. If in Terminal the right ruby is found, you can type there `which ruby` and you have the PATH element (all before /ruby) that needs to be prepended to /usr/bin:/bin:... in the form ':'. > >> For those graphical Mac OS X applications there is (almost?) no other >> way then ~/.MacOSX/environment.plist to prepare them with a suitable >> runtime environment. > the site says, I would need to create a directory and a > .plist file, as I have neither one. > To create the empty directory: mkdir ~/.MacOSX Then in Emacs open in that directory (C-x d, position the cursor, f) the file (C-x f) environment.plist and insert this: PATH /Users/pete/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11R6/bin:/ usr/local/bin:/sw/bin:/usr/local/teTeX/bin/powerpc-apple-darwin- current The text between and is the PATH. What you see is mine, including a place where I have some shell scripts, including places where X11 applications or other programmes from the public domain can be found. So they are accessible from inside any Mac OS X application. (You know how to save a file in Emacs? C-x C-s) In case you are searching in Emacs for the files that set the bash environment, type in Emacs 'C-x d ~ '. You will see in the mini-buffer the text '/Users/anne/Desktop/', which is your current working directory. Appending '~' to it makes Emacs to open your HOME directory when you press the return key. And there you see the other side of Mac OS X ... file names starting with '.', colourful directories (folders) ... Is it this what you addressed by writing: > I looked in my panther book at all the bash environment > variables, but I have no clue as to what to do. Sorry. -- Greetings Pete Without vi there is only GNU Emacs