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

Re: Problem with template location

From
Junio C Hamano <junkio@cox.net>
Date
Nov 9, 2005, 21:29 UTC
Message-ID
<7vr79pbjcz.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<200511092045.55300.alan@chandlerfamily.org.uk>
Alan Chandler <alan@chandlerfamily.org.uk> writes:
> I don't know whether this is something that can be fixed at install time, or 
> whether the README should be changed to make it clear that you need the 
> prefix on the first stage of the process as well as the second.

Thanks Alan and Jon. This seems to be hitting some people so here is what I plan to push out.

-- >8 -- cut here -- >8 --
Subject: Update INSTALL

Explicitly mention how to install by hand in build-as-user and install-as-root steps.

Signed-off-by: Junio C Hamano <junkio@cox.net>
---
 INSTALL |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

applies-to: 132cf7a143b9ed08e69399da6caa0c627d26f181 c44922a7817398d63bb2b46dc599bd05c710e746

diff --git a/INSTALL b/INSTALL
index bbb13f3..06b11e1 100644
--- a/INSTALL
+++ b/INSTALL
@@ -5,10 +5,13 @@ Normally you can just do "make" followed
 will install the git programs in your own ~/bin/ directory.  If you want
 to do a global install, you can do
 
-	make prefix=/usr install
+	$ make prefix=/usr ;# as yourself
+	# make prefix=/usr install ;# as root
 
-(or prefix=/usr/local, of course).  Some day somebody may send me a RPM
-spec file or something, and you can do "make rpm" or whatever.
+(or prefix=/usr/local, of course).  Just like any program suite
+that uses $prefix, the built results have some paths encoded,
+which are derived from $prefix, so "make all; make prefix=/usr
+install" would not work.
 
 Issues of note:
 
---
0.99.9.GIT
Previous: Jon LoeligerNext: Peter Eriksen
Message 3 of 4 in “Problem with template location”
  1. Alan ChandlerNov 9, 2005
  2. Jon LoeligerNov 9, 2005
  3. Junio C HamanoNov 9, 2005
  4. Peter EriksenNov 9, 2005

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.