Git development
 help / color / mirror / Atom feed
From: Alan Chandler <alan@chandlerfamily.org.uk>
To: git@vger.kernel.org
Subject: Problem with template location
Date: Wed, 9 Nov 2005 20:45:55 +0000	[thread overview]
Message-ID: <200511092045.55300.alan@chandlerfamily.org.uk> (raw)

I am trying to set up a public repository on my server to which I can push 
stuff

I have just downloaded the git-core-0.99f-tar.bz2 file and untarred it as me 
(alan) on account on the server.  My home directory is at /home/alan

Went in as me into the git-core-0.99f directory and did a make

Then became ROOT and did 

make prefix=/usr/local install

(I also built the documentation but I don't think that is relevent)


Separately AS ROOT I have gone into the directory where I am going to build my 
repositories (/var/lib/git) and tried to build the repository as per the 
tutorial.


roo:/var/lib/git# mkdir famtree.git
roo:/var/lib/git# GIT_DIR=famtree.git git-init-db
warning: templates not found /home/alan/share/git-core/templates/
roo:/var/lib/git#

git-init-db seems to have got the wrong place for the templates - ie the 
account where I originally built the code.

(NOTE: the templates have actually been installed 
in /usr/local/share/git-core/templates)

I had to do a make clean, but following that I did

make prefix=/usr/local 

for the first part,  and then re-installed (also with the prefix) and it 
solves the problem

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.


-- 
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.

             reply	other threads:[~2005-11-09 20:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-09 20:45 Alan Chandler [this message]
2005-11-09 21:06 ` Problem with template location Jon Loeliger
2005-11-09 21:29 ` Junio C Hamano
2005-11-09 21:49 ` Peter Eriksen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200511092045.55300.alan@chandlerfamily.org.uk \
    --to=alan@chandlerfamily.org.uk \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox