From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Z C Newsgroups: gmane.emacs.help Subject: How to compile a portable emacs for Linux? Date: Tue, 11 Sep 2012 10:44:26 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f46d04138a59ad44c404c9640e39 X-Trace: ger.gmane.org 1347333406 28977 80.91.229.3 (11 Sep 2012 03:16:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 03:16: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 Tue Sep 11 05:16:47 2012 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 1TBGxz-0001i8-0k for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 05:16:47 +0200 Original-Received: from localhost ([::1]:43151 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBGxv-0006YA-I5 for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Sep 2012 23:16:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBGT3-00032w-L5 for help-gnu-emacs@gnu.org; Mon, 10 Sep 2012 22:44:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TBGT2-0005i4-Jz for help-gnu-emacs@gnu.org; Mon, 10 Sep 2012 22:44:49 -0400 Original-Received: from mail-wg0-f41.google.com ([74.125.82.41]:61279) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBGT2-0005i0-DH for help-gnu-emacs@gnu.org; Mon, 10 Sep 2012 22:44:48 -0400 Original-Received: by wgbds1 with SMTP id ds1so1667450wgb.0 for ; Mon, 10 Sep 2012 19:44:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=f71H3loFBK+HPAItedNWbpb+ZPD9Q8BAp2PtPvsaz0A=; b=svGrTaLQ+pyZfrhsaBO4dVcWUHDOCzWli/EClaF9G1p4uSYqvKP5NrzRhvF3YUG8Um oCt34QxKFT2LTqczfPE0KG7+Rn0lGis6DUMW67pxcKAnXYlqZjzV4NW/eIe1YssetPGe AqXUluGH5aZ6IRteFEb1FEA/tigFOiVdKKG9yrgEEkW4ao+eW5uH77WN2cjMrIKZllKl SP9LtP0UioJV8/ULkJDwkSfS3YYXX7uoVlybTb8q9anC9klbh/rU7Fzd5PdRbnod6d44 WtI8j7m/YKJB6R/dC/Kpe3YaI/3uOdZolziWW+Evz92PNnqtKMKEXGbsIWZ3kyPmJISJ 7Ryw== Original-Received: by 10.180.14.8 with SMTP id l8mr21537477wic.6.1347331486991; Mon, 10 Sep 2012 19:44:46 -0700 (PDT) Original-Received: by 10.216.164.131 with HTTP; Mon, 10 Sep 2012 19:44:26 -0700 (PDT) X-Google-Sender-Auth: XSdnXKUHK0KZkCtpkkKp58_yH7U X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 74.125.82.41 X-Mailman-Approved-At: Mon, 10 Sep 2012 23:16:36 -0400 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:86716 Archived-At: --f46d04138a59ad44c404c9640e39 Content-Type: text/plain; charset=ISO-8859-1 If you compile the emacs source code using default way (that is "./configure && make && make install"), once it has been compiled, the program path can no longer be changed. (i.e. if you move the program and all its data to another directory, it won't run) But I have specific need: I need to run emacs on multiple computers and the path is not a constant. So how can I build a portable version of emacs? For instance, I want to put the program and all its data in a folder named emacs, and this folder may have different path on different computers: /media/disk/emacs or /home/xxx/emacs or ...., and I want to make it run on those computers. --f46d04138a59ad44c404c9640e39 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
If you compile the emacs source code using default way (that is ".= /configure && make && make install"), once it has been= compiled, the program path can no longer be changed. (i.e. if you move the= program and all its data to another directory, it won't run)

But I have specific need: I need to run emacs on multiple computers and= the path is not a constant. So how can I build a portable version of emacs= ?

For instance, I want to put the program and all its data in a fold= er named emacs, and this folder may have different path on different comput= ers: /media/disk/emacs or /home/xxx/emacs or ...., and I want to make it ru= n on those computers.
--f46d04138a59ad44c404c9640e39--