git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: relocating the binaries

From
Junio C Hamano <junkio@cox.net>
Date
Mar 20, 2007, 07:45 UTC
Message-ID
<7v8xds9x4u.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<f36b08ee0703200012o6f479defs6a8edc8fb1179b8c@mail.gmail.com>
"Yakov Lerner" <iler.ml@gmail.com> writes:
> Let's say the git binaries were built with prefix=/usr/local.
> I wanto to copy them (relocate) to other machine under
> $HOME/run. WHich env.var. do I set to tell the git binaries  that
> it's new prefix is $HOME/run ? nb: i'm not talking about rebuild.
See INSTALL.
 - You can use git after building but without installing if you
   wanted to.  Various git commands need to find other git
   commands and scripts to do their work, so you would need to
   arrange a few environment variables to tell them that their
   friends will be found in your built source area instead of at
   their standard installation area.  Something like this works
   for me:
	GIT_EXEC_PATH=`pwd`
	PATH=`pwd`:$PATH
	GITPERLLIB=`pwd`/perl/blib/lib
	export GIT_EXEC_PATH PATH GITPERLLIB

GIT_EXEC_PATH won't be `pwd` but wherever you will take git-* binaries to; adjust GITPERLLIB too accordingly.

Previous: Yakov Lerner
Message 2 of 2 in “relocating the binaries”
  1. Yakov LernerMar 20, 2007
  2. Junio C HamanoMar 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.