{"thread":{"id":"2413","subject":"Problem with template location","startedAt":"2005-11-09T20:45:55Z","lastAt":"2005-11-09T21:49:04Z","messageCount":4,"participants":["Alan Chandler","Jon Loeliger","Junio C Hamano","Peter Eriksen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"11403","messageId":"200511092045.55300.alan@chandlerfamily.org.uk","threadId":"2413","inReplyTo":null,"subject":"Problem with template location","fromName":"Alan Chandler","fromEmail":"alan@chandlerfamily.org.uk","sentAt":"2005-11-09T20:45:55Z","receivedAt":"2005-11-09T20:45:55Z","isPatch":false,"sender":{"key":"alan@chandlerfamily.org.uk","avatar":"https://gravatar.com/avatar/1862247e5ea8eac114c842f9dc3a5db6253754e24ef7171757cf97eedce48b8c?d=mp&s=160"},"body":"I am trying to set up a public repository on my server to which I can push \nstuff\n\nI have just downloaded the git-core-0.99f-tar.bz2 file and untarred it as me \n(alan) on account on the server.  My home directory is at /home/alan\n\nWent in as me into the git-core-0.99f directory and did a make\n\nThen became ROOT and did \n\nmake prefix=/usr/local install\n\n(I also built the documentation but I don't think that is relevent)\n\n\nSeparately AS ROOT I have gone into the directory where I am going to build my \nrepositories (/var/lib/git) and tried to build the repository as per the \ntutorial.\n\n\nroo:/var/lib/git# mkdir famtree.git\nroo:/var/lib/git# GIT_DIR=famtree.git git-init-db\nwarning: templates not found /home/alan/share/git-core/templates/\nroo:/var/lib/git#\n\ngit-init-db seems to have got the wrong place for the templates - ie the \naccount where I originally built the code.\n\n(NOTE: the templates have actually been installed \nin /usr/local/share/git-core/templates)\n\nI had to do a make clean, but following that I did\n\nmake prefix=/usr/local \n\nfor the first part,  and then re-installed (also with the prefix) and it \nsolves the problem\n\nI don't know whether this is something that can be fixed at install time, or \nwhether the README should be changed to make it clear that you need the \nprefix on the first stage of the process as well as the second.\n\n\n-- \nAlan Chandler\nhttp://www.chandlerfamily.org.uk\nOpen Source. It's the difference between trust and antitrust.\n"},{"id":"11404","messageId":"1131570383.23046.32.camel@cashmere.sps.mot.com","threadId":"2413","inReplyTo":"200511092045.55300.alan@chandlerfamily.org.uk","subject":"Re: Problem with template location","fromName":"Jon Loeliger","fromEmail":"jdl@freescale.com","sentAt":"2005-11-09T21:06:23Z","receivedAt":"2005-11-09T21:06:23Z","isPatch":false,"sender":{"key":"jdl@jdl.com","avatar":"https://gravatar.com/avatar/75ce9a10b151acd2c28ec4ab2136dba7b2ff1634530bd04b155981a749d08a64?d=mp&s=160"},"body":"On Wed, 2005-11-09 at 14:45, Alan Chandler wrote:\n\n> \n> Went in as me into the git-core-0.99f directory and did a make\n> \n> Then became ROOT and did \n> \n> make prefix=/usr/local install\n\nI don't know.  There is something so... so... synchronatic\nabout this all...  :-)\n\njdl\n"},{"id":"11406","messageId":"7vr79pbjcz.fsf@assigned-by-dhcp.cox.net","threadId":"2413","inReplyTo":"200511092045.55300.alan@chandlerfamily.org.uk","subject":"Re: Problem with template location","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2005-11-09T21:29:32Z","receivedAt":"2005-11-09T21:29:32Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Alan Chandler <alan@chandlerfamily.org.uk> writes:\n\n> I don't know whether this is something that can be fixed at install time, or \n> whether the README should be changed to make it clear that you need the \n> prefix on the first stage of the process as well as the second.\n\nThanks Alan and Jon.  This seems to be hitting some people so\nhere is what I plan to push out.\n\n-- >8 -- cut here -- >8 --\nSubject: Update INSTALL\n\nExplicitly mention how to install by hand in build-as-user and\ninstall-as-root steps.\n\nSigned-off-by: Junio C Hamano <junkio@cox.net>\n\n---\n\n INSTALL |    9 ++++++---\n 1 files changed, 6 insertions(+), 3 deletions(-)\n\napplies-to: 132cf7a143b9ed08e69399da6caa0c627d26f181\nc44922a7817398d63bb2b46dc599bd05c710e746\ndiff --git a/INSTALL b/INSTALL\nindex bbb13f3..06b11e1 100644\n--- a/INSTALL\n+++ b/INSTALL\n@@ -5,10 +5,13 @@ Normally you can just do \"make\" followed\n will install the git programs in your own ~/bin/ directory.  If you want\n to do a global install, you can do\n \n-\tmake prefix=/usr install\n+\t$ make prefix=/usr ;# as yourself\n+\t# make prefix=/usr install ;# as root\n \n-(or prefix=/usr/local, of course).  Some day somebody may send me a RPM\n-spec file or something, and you can do \"make rpm\" or whatever.\n+(or prefix=/usr/local, of course).  Just like any program suite\n+that uses $prefix, the built results have some paths encoded,\n+which are derived from $prefix, so \"make all; make prefix=/usr\n+install\" would not work.\n \n Issues of note:\n \n---\n0.99.9.GIT\n"},{"id":"11411","messageId":"20051109214904.GB23052@ebar091.ebar.dtu.dk","threadId":"2413","inReplyTo":"200511092045.55300.alan@chandlerfamily.org.uk","subject":"Re: Problem with template location","fromName":"Peter Eriksen","fromEmail":"s022018@student.dtu.dk","sentAt":"2005-11-09T21:49:04Z","receivedAt":"2005-11-09T21:49:04Z","isPatch":false,"sender":{"key":"s022018@student.dtu.dk","avatar":null},"body":"On Wed, Nov 09, 2005 at 08:45:55PM +0000, Alan Chandler wrote:\n> I am trying to set up a public repository on my server to which I can push \n> stuff\n> \n> I have just downloaded the git-core-0.99f-tar.bz2 file and untarred it as me \n> (alan) on account on the server.  My home directory is at /home/alan\n> \n> Went in as me into the git-core-0.99f directory and did a make\n> \n> Then became ROOT and did \n> \n> make prefix=/usr/local install\n\nHey, I fell over this today also.  To me it's really quite unintuitive.\n\nRegards,\n\nPeter\n"}]}