Subject: 23.0.94; [NS/Cocoa] Emacs doesn't work when symlinked

From: Ian Eure <[email-masked]>
Date: Tue, 16 Jun 2009 09:16:14 -0700

On OS X, if you create a symlink to the Emacs binary and run it, Emacs  
fails to start:

-- snip --
ieure!electron:~$ ln -s /Applications/Emacs.app/Contents/MacOS/Emacs  
emacs
ieure!electron:~$ ./emacs
Warning: arch-dependent data dir (/Users/ieure/Projects/emacs/nextstep/ 
Emacs.app/Contents/MacOS/libexec/emacs/23.0.94/i386-apple- 
darwin9.7.0/) does not exist.
Cannot open load file: encoded-kb
ieure!electron:~$
-- snip --

The data dir is the in directory I built Emacs from.

In GNU Emacs 23.0.94.1 (i386-apple-darwin9.7.0, NS apple-appkit-949.46)
  of 2009-06-16 on neutron.local
Windowing system distributor `Apple', version 10.3.949
configured using `configure  '--with-ns''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: nil
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: nil
   value of $XMODIFIERS: nil
   locale-coding-system: nil
   default-enable-multibyte-characters: t

Major mode: ERC

Minor modes in effect:
   erc-track-mode: t
   erc-track-minor-mode: t
   erc-spelling-mode: t
   flyspell-mode: t
   erc-ring-mode: t
   erc-pcomplete-mode: t
   erc-netsplit-mode: t
   erc-match-mode: t
   erc-button-mode: t
   erc-fill-mode: t
   erc-autojoin-mode: t
   erc-irccontrols-mode: t
   erc-noncommands-mode: t
   erc-readonly-mode: t
   erc-scrolltobottom-mode: t
   which-function-mode: t
   shell-dirtrack-mode: t
   ime-bindings: t
   show-paren-mode: t
   recentf-mode: t
   iswitchb-mode: t
   cua-mode: t
   auto-insert-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t
   size-indication-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t
   abbrev-mode: t

Recent input:

Recent messages:
Mark set
For information about GNU Emacs and the GNU system, type C-h C-a.
Starting new Ispell process [default] ...