From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Pascal J. Bourguignon" Newsgroups: gmane.emacs.help Subject: Re: How to compile a portable emacs for Linux? Date: Tue, 11 Sep 2012 09:28:13 +0200 Organization: Informatimago Message-ID: <87d31thvci.fsf@kuiper.lan.informatimago.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1347348625 4915 80.91.229.3 (11 Sep 2012 07:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2012 07:30:25 +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 09:30:25 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 1TBKvL-0005wz-2s for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 09:30:19 +0200 Original-Received: from localhost ([::1]:44288 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TBKvH-00008p-I6 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Sep 2012 03:30:15 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: individual.net KJw4TeAY0uhXM0SWInND+A//UtKP/25xRRHqIQAeZhNRM320E0JKcLR/vpoi7y7dAJ Cancel-Lock: sha1:MzM0ZDlhMzAyODYzNzg2YTAzYzE1YmRmNmZjMTI1ZjdkMTdiOTc1Mw== sha1:Tfqe5bb2/3CycXLgjPOdFdEWFiw= Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAQMAAABtzGvEAAAABlBMVEUAAAD///+l2Z/dAAAA oElEQVR4nK3OsRHCMAwF0O8YQufUNIQRGIAja9CxSA55AxZgFO4coMgYrEDDQZWPIlNAjwq9 033pbOBPtbXuB6PKNBn5gZkhGa86Z4x2wE67O+06WxGD/HCOGR0deY3f9Ijwwt7rNGNf6Oac l/GuZTF1wFGKiYYHKSFAkjIo1b6sCYS1sVmFhhhahKQssRjRT90ITWUk6vvK3RsPGs+M1RuR mV+hO/VvFAAAAABJRU5ErkJggg== X-Accept-Language: fr, es, en User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:194377 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:86719 Archived-At: Suvayu Ali writes: > On Mon, Sep 10, 2012 at 08:44:37PM -0700, Jason Rumney wrote: >> On Tuesday, 11 September 2012 10:44:26 UTC+8, Z C wrote: >> >> > 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. >> >> Don't make install. Just copy the results of make (.o and .c files can >> be omitted if you are short on space). If Emacs finds it is not >> installed in the configured path, it will assume that it is running >> uninstalled, and will look for files relative to its location in the >> src directory. >> > > I do not think that will work; what about linked libraries? It will > work only when the linked libraries are at the same location on the > different systems, at least that is what I recall when I wanted > something like this myself a few years back. You can copy the linked libraries you need and use LD_LIBRARY_PATH to tell emacs where they are. -- __Pascal Bourguignon__ http://www.informatimago.com/ A bad day in () is better than a good day in {}.