From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: can one run tk/Ruby gui code from an emacs shell with compile?
Date: Sat, 19 Nov 2005 13:18:39 +0100 [thread overview]
Message-ID: <7f4636350e1463d2e65d5cc9d12877a4@Web.DE> (raw)
In-Reply-To: <Pine.SOL.4.30.0511190618060.23887-100000@wjh1.wjh.harvard.edu>
Am 19.11.2005 um 12:32 schrieb Anne G:
> I was worried that emacs might be using the ruby 1.6 which
> comes as a default on panther, so I deleted two folders that
> had 1.6 in it, and checked terminal still runs my snipet.
There is an "easy" way to correct the system when it constantly uses
the wrong binary: change the search path, i.e. the PATH variable in
bash or path in tcsh. To do so invoke in some shell 'which programme
name', i.e. 'which ruby'. The answer might be /bin/ruby. So you now
know that /bin should come later in PATH or path. For bash you can
change in ~/.bashrc (which is always executed when bash is launched)
export PATH="<home of new ruby>:$PATH"
for tcsh there is .tcshrc:
set path=(<home of new ruby> $path)
>
> The DLY directory line seems permanently removed.
>
That's what you think! Just try this: M-x shell-command <RET> env |
sort <RET>! And then look (search) for DYLD_LIBRARY_PATH. It's still
there, isn't it? The runtime environment, in which Carbon Emacs
executes, still has this variable set. Any process that is spawned by
Emacs, for example a compilation, inherits this environment. Try to
rename (or remove) these two
/Applications/Emacs.app/Contents/Resources/share/emacs/22.0.50/site-
lisp/site-start.d/carbon-emacs-builtin-aspell.el* files! In Carbon
Emacs it's very easy to access the interiors of an application bundle.
To check whether things are right in Carbon Emacs' runtime environment
you can use this: M-! env | egrep -w 'PATH|DYLD_LIBRARY_PATH' (the
short version).
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. Once you have created that file (in the Developer
Tools there is a Property List Editor which is automagically launched
when you invoke in a shell 'open ~/.MacOSX/environment.plist'), it
probably works at once when you invoke an application newly. And it
changes the runtime environments for all applications too, once they've
been re-launched!
Read Apple's http://developer.apple.com/qa/qa2001/qa1067.html!
--
Greetings
Pete
Mac OS X is like a wigwam: no fences, no gates, but an apache inside.
next prev parent reply other threads:[~2005-11-19 12:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-18 17:11 can one run tk/Ruby gui code from an emacs shell with compile? anne001
2005-11-18 18:18 ` Peter Dyballa
2005-11-18 18:51 ` Anne G
2005-11-18 19:53 ` Peter Dyballa
2005-11-19 0:56 ` Anne G
2005-11-19 9:48 ` Peter Dyballa
2005-11-19 11:32 ` Anne G
2005-11-19 12:18 ` Peter Dyballa [this message]
2005-11-19 14:19 ` Anne G
2005-11-19 15:03 ` Peter Dyballa
2005-11-19 16:47 ` Success, emacs compiled my snipet Anne G
2005-11-19 19:20 ` Peter Dyballa
2005-11-20 0:16 ` can one run tk/Ruby gui code from an emacs shell with compile? Anne G
2005-11-20 1:13 ` Peter Dyballa
2005-11-20 14:41 ` Anne G
2005-11-20 15:53 ` Peter Dyballa
-- strict thread matches above, loose matches on Subject: below --
2005-11-19 17:19 Anne G
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7f4636350e1463d2e65d5cc9d12877a4@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).