# relocating the binaries

2 messages from 2007-03-20 to 2007-03-20. Participants: Yakov Lerner, Junio C Hamano.
Thread: https://gitlist.dev/t/7327

## Yakov Lerner, 2007-03-20 07:12

Subject: relocating the binaries
Message-ID: <f36b08ee0703200012o6f479defs6a8edc8fb1179b8c@mail.gmail.com>
URL: https://gitlist.dev/e/f36b08ee0703200012o6f479defs6a8edc8fb1179b8c%40mail.gmail.com

```
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, 2007-03-20 07:45

Subject: Re: relocating the binaries
Message-ID: <7v8xds9x4u.fsf@assigned-by-dhcp.cox.net>
URL: https://gitlist.dev/e/7v8xds9x4u.fsf%40assigned-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.

```
