From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: fimbaz@gmail.com Newsgroups: gmane.emacs.help Subject: Re: Installing emacs binaries in non-standard location Date: Wed, 5 Nov 2014 13:00:41 -0800 (PST) Message-ID: <51f51168-f046-4da8-81e0-79358a3bf68c@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 X-Trace: ger.gmane.org 1415222446 31423 80.91.229.3 (5 Nov 2014 21:20:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Nov 2014 21:20:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 05 22:20:39 2014 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 1Xm80N-0000QS-Ah for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 22:20:39 +0100 Original-Received: from localhost ([::1]:48562 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xm80M-0006TV-Ib for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Nov 2014 16:20:38 -0500 X-Received: by 10.42.229.200 with SMTP id jj8mr5957230icb.11.1415221242728; Wed, 05 Nov 2014 13:00:42 -0800 (PST) X-Received: by 10.50.114.134 with SMTP id jg6mr133208igb.13.1415221242631; Wed, 05 Nov 2014 13:00:42 -0800 (PST) Original-Path: usenet.stanford.edu!r10no4334034igi.0!news-out.google.com!c9ni6259igv.0!nntp.google.com!h15no6409616igd.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=63.172.232.5; posting-account=Z3qnPwoAAABzFWpR9tHk7Q8r39-pzW6J Original-NNTP-Posting-Host: 63.172.232.5 User-Agent: G2/1.0 Injection-Date: Wed, 05 Nov 2014 21:00:42 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208498 X-Mailman-Approved-At: Wed, 05 Nov 2014 16:20:21 -0500 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:100774 Archived-At: I am in your exact situation. This post was the last piece of the puzzle. You rock! On Friday, September 10, 2010 9:39:45 AM UTC-7, Derek wrote: > Hopefully this will help someone else. > > I was given access to a bunch of AIX(6) boxes at work that didn't have > emacs and didn't have a compiler so I couldn't build emacs from > source. > > I was able to find some binary RPM's for AIX at > > http://www-03.ibm.com/systems/power/software/aix/linux/toolbox/rpmgroups.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.rpm > > Of course I couldn't install the rpms because I am a non-root user, so > I extracted the files from the rpms using rpm2cpio like so > > rpm2cpio myrpmfile.rpm | cpio -idmv > > I actually extracted them on a linux box because I didn't have > rpm2cpio on the AIX box. > > Once they were extracted, I tarred everything up and moved 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 was getting the following errors > > Warning: arch-dependent data dir (/opt/freeware/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. > Warning: Lisp directory `/opt/freeware/share/emacs/site-lisp' does not > exist. > Warning: Lisp directory `/opt/freeware/share/emacs/21.3/leim' does not > exist. > Warning: Lisp directory `/opt/freeware/share/emacs/21.3/lisp' does not > exist. > > > 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. > > EMACSLOADPATH=/home/myuser/emacs/opt/freeware/share/emacs/21.3/lisp > EMACS_DIR=/home/myuser/emacs/opt/freeware/share/emacs/21.3 > EMACSDATA=/home/myuser/emacs/opt/freeware/share/emacs/21.3/etc > > and exported them > > export EMACSLOADPATH EMACS_DIR EMACSDATA > > I could then successfully start emacs-nox on the AIX boxes. Ahhhhhh > > Hope this helps someone else avoid a slow painful death by vi.