threads / discuss / 7327

relocating the binaries

Subject: relocating the binaries

## tl;dr

2 messages between Mar 20, 2007 and Mar 20, 2007.

replies: 1people: 2as markdown or json

Yakov Lerner· Mar 20, 2007, 07:12 UTC · lore

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.

Thanks Yakov

Junio C Hamano· Mar 20, 2007, 07:45 UTC · re: Yakov Lerner · lore

Re: relocating the binaries

"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.

← back to recent threads