From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: koolpkr@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Installing emacs binaries in non-standard location Date: Thu, 17 Jan 2013 13:31:48 -0800 (PST) Message-ID: <225ee0dc-91a5-4aea-be55-e1c53debeea4@googlegroups.com> References: <5c657aa3-e49b-4207-80b1-8fda4d4d1d30@t11g2000vbc.googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1358458528 30006 80.91.229.3 (17 Jan 2013 21:35:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jan 2013 21:35:28 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 17 22:35:46 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Tvx7d-0005qI-Ll for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 22:35:41 +0100 Original-Received: from localhost ([::1]:33532 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tvx7M-00032o-Ot for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Jan 2013 16:35:24 -0500 X-Received: by 10.224.192.199 with SMTP id dr7mr4109559qab.4.1358458309863; Thu, 17 Jan 2013 13:31:49 -0800 (PST) X-Received: by 10.49.75.195 with SMTP id e3mr1708833qew.24.1358458309764; Thu, 17 Jan 2013 13:31:49 -0800 (PST) Original-Path: usenet.stanford.edu!p13no1094284qai.0!news-out.google.com!k2ni675qap.0!nntp.google.com!p13no1094276qai.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <5c657aa3-e49b-4207-80b1-8fda4d4d1d30@t11g2000vbc.googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=199.38.154.10; posting-account=3A4xGQoAAABNdxeORn8xZJujGbycBDnl Original-NNTP-Posting-Host: 199.38.154.10 User-Agent: G2/1.0 Injection-Date: Thu, 17 Jan 2013 21:31:49 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:196394 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:88689 Archived-At: On Friday, September 10, 2010 11:39:45 AM UTC-5, Derek wrote: > Hopefully this will help someone else.I was given access to a bunch of AI= X(6) boxes at work that didn't have emacs and didn't have a compiler so I c= ouldn't build emacs fromsource. I was able to find some binary RPM's for AI= X athttp://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroup= s.html I used* emacs-21.3-1.aix5.1.ppc.rpm * emacs-el-21.3-1.aix5.1.ppc.rpm= * emacs-leim-21.3-1.aix5.1.ppc.rpm * emacs-nox-21.3-1.aix5.1.ppc.rpmOf cour= se I couldn't install the rpms because I am a non-root user, so I extracted= the files from the rpms using rpm2cpio like sorpm2cpio myrpmfile.rpm | cpi= o -idmvI actually extracted them on a linux box because I didn't have rpm2c= pio on the AIX box.Once they were extracted, I tarred everything up and mov= ed it to a directory on the AIX box that I had permissions to. I then tried= to run "emacs-nox."It wouldn't run because these were binary packages and = the standard locations of the files were "built" into the binaries. It was = looking for the standard files at/opt/freeware/share/emacs/21.3/.......I wa= s getting the following errorsWarning: arch-dependent data dir (/opt/freewa= re/lib/emacs/21.3/powerpc- ibm-aix5.1.0.0/) does not exis\t. Warning: Lisp = directory `/opt/freeware/share/emacs/21.3/site-lisp' does not exist. Warnin= g: Lisp directory `/opt/freeware/share/emacs/site-lisp' does not exist. War= ning: Lisp directory `/opt/freeware/share/emacs/21.3/leim' does not exist. = Warning: Lisp directory `/opt/freeware/share/emacs/21.3/lisp' does not exis= t.but of course I didn't have permission to install it there as a non- root= user. I had installed it in/home/myuser/emacs/opt/freeware/.... After some= searching, I found that I could set some environment variables to override= the default locations of the files. Here are the variables I set.EMACSLOAD= PATH=3D/home/myuser/emacs/opt/freeware/share/emacs/21.3/lisp EMACS_DIR=3D/h= ome/myuser/emacs/opt/freeware/share/emacs/21.3 EMACSDATA=3D/home/myuser/ema= cs/opt/freeware/share/emacs/21.3/etcand exported themexport EMACSLOADPATH E= MACS_DIR EMACSDATAI could then successfully start emacs-nox on the AIX boxe= s. AhhhhhhHope this helps someone else avoid a slow painful death by vi. Hi Derek, this is really cool post, it has helped me immensly for setting u= p emacs on my AIX development environment. Thank you so much for sharing th= is information. I would just like to add I extacted .rpm files using 7-zip = on windows platform, but result is same which is "Running emacs successfull= y".