AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  How to install emacs in location other than /opt/freeware

    Posted Mon April 09, 2007 10:38 AM

    Originally posted by: SystemAdmin


    emacs-21.3, as downloaded from the ibm toolbox
    appears to search for its init macros
    under hardwired '/opt/freeware/lib share/emacs'.

    Due to local policy, emacs is installed under /tools/opt/freeware,
    and it is impractical to recompile emacs-21.3,
    nor install a symlink in /opt/freeware/share/emacs.

    ~/.emacs does not appear to be read before emacs fails to find /opt/freeware
    and aborts.

    Is there a way (e.g. emacs --eval ???, $EMACSLIB) to direct emacs to
    find its initialization files under /tools/opt/freeware ?

    Any hints appreciated,
    #AIX-Forum


  • 2.  Re: How to install emacs in location other than /opt/freeware

    Posted Mon April 09, 2007 12:32 PM

    Originally posted by: SystemAdmin


    The following environment variables allow installation under /tools/opt/freeware

    ksh> EMACSTOP="/tools/opt/freeware/share/emacs"
    ksh> export EMACSDATA="$EMACSTOP/21.3/etc"
    ksh> EMACSLOADPATH="$EMACSTOP/21.3/powerpc-ibm-aix5.1.0.0"
    ksh> EMACSLOADPATH="$EMACSLOADPATH:$EMACSTOP/21.3/site-lisp"
    ksh> EMACSLOADPATH="$EMACSLOADPATH:$EMACSTOP/site-lisp"
    ksh> EMACSLOADPATH="$EMACSLOADPATH:$EMACSTOP/21.3/leim"
    ksh> export EMACSLOADPATH="$EMACSLOADPATH:$EMACSTOP/21.3/lisp"

    For further details see '(emacs) General Variables' in the emacs*.gz info
    files provided with the emacs package.

    Unfortunately, it still reports a warning, unable to find /opt/freeware/...
    files.
    #AIX-Forum


  • 3.  Re: How to install emacs in location other than /opt/freeware

    Posted Tue April 10, 2007 07:44 AM

    Originally posted by: SystemAdmin


    What's "impractical" about re-compiling Emacs? It should take you all of about half an hour. That way you can put it wherever you like and configure it however you like.

    FWIW

    Jim Lane
    #AIX-Forum