{"thread":{"id":"7327","subject":"relocating the binaries","startedAt":"2007-03-20T07:12:36Z","lastAt":"2007-03-20T07:45:05Z","messageCount":2,"participants":["Yakov Lerner","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"37604","messageId":"f36b08ee0703200012o6f479defs6a8edc8fb1179b8c@mail.gmail.com","threadId":"7327","inReplyTo":null,"subject":"relocating the binaries","fromName":"Yakov Lerner","fromEmail":"iler.ml@gmail.com","sentAt":"2007-03-20T07:12:36Z","receivedAt":"2007-03-20T07:12:36Z","isPatch":false,"sender":{"key":"iler.ml@gmail.com","avatar":null},"body":"Let's say the git binaries were built with prefix=/usr/local.\nI wanto to copy them (relocate) to other machine under\n$HOME/run. WHich env.var. do I set to tell the git binaries  that\nit's new prefix is $HOME/run ? nb: i'm not talking about rebuild.\n\nThanks\nYakov\n"},{"id":"37606","messageId":"7v8xds9x4u.fsf@assigned-by-dhcp.cox.net","threadId":"7327","inReplyTo":"f36b08ee0703200012o6f479defs6a8edc8fb1179b8c@mail.gmail.com","subject":"Re: relocating the binaries","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-03-20T07:45:05Z","receivedAt":"2007-03-20T07:45:05Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Yakov Lerner\" <iler.ml@gmail.com> writes:\n\n> Let's say the git binaries were built with prefix=/usr/local.\n> I wanto to copy them (relocate) to other machine under\n> $HOME/run. WHich env.var. do I set to tell the git binaries  that\n> it's new prefix is $HOME/run ? nb: i'm not talking about rebuild.\n\nSee INSTALL.\n\n - You can use git after building but without installing if you\n   wanted to.  Various git commands need to find other git\n   commands and scripts to do their work, so you would need to\n   arrange a few environment variables to tell them that their\n   friends will be found in your built source area instead of at\n   their standard installation area.  Something like this works\n   for me:\n\n\tGIT_EXEC_PATH=`pwd`\n\tPATH=`pwd`:$PATH\n\tGITPERLLIB=`pwd`/perl/blib/lib\n\texport GIT_EXEC_PATH PATH GITPERLLIB\n\nGIT_EXEC_PATH won't be `pwd` but wherever you will take git-*\nbinaries to; adjust GITPERLLIB too accordingly.\n"}]}