BUG?? INSTALL MAKEFILE
Hallo,
i'm a brand-new git user. Just one minute ago I wanted to install git in my home directory. The INSTALL file says type simply "make install", but the makefile does a global installation.
Lars
Quoted 5 lines · Lars Sadau
Hallo,
i'm a brand-new git user. Just one minute ago I wanted to install git in my home directory. The INSTALL file says type simply "make install", but the makefile does a global installation.
I was going to write:
Either run ./configure --prefix=$HOME/wherever/you/want or edit the prefix variable in config.mak.
but then realized that prefix is set to $(HOME) by default. Are you sure you didn't edit the Makefile or run any sort of ./configure before "make install" ?
Signature · 1 line
Matthieu
Quoted 3 lines
but then realized that prefix is set to $(HOME) by default. Are you sure you didn't edit the
Makefileor run any sort of ./configure before "make install" ?
After doing a
git clean -f
in my local git repo, I notice that:
config.mak.autogen
still exists, and inside it:
prefix = /usr/local
That file is included in the Makefile *after* prefix is set, and so if it's not updated, the Makefile will default to /usr/local.
According to the INSTALL doc, the default prefix should be ~. However, this is certainly not the case. Either the INSTALL doc needs to be updated or a new default config.mak.autogen needs to be checked in (or perhaps config.mak.autogen needs to be omitted from the repo?).
--Ted
Signature · 1 line
Ted Pavlic <[email protected]>
Quoted 1 line
git clean -f
DOH. I meant to do
git clean -fx
(or just a git ls-files). That config.mak.autogen is certainly not checked into the repo, and a quick test confirms that "make install" certainly does set prefix to the home directory.
That being said, I'm sure that in the recent past I had to use configure to install git into home directories.
--Ted
Signature · 1 line
Ted Pavlic <[email protected]>
Quoted 7 lines · Ted Pavlic
Quoted 3 lines
but then realized that prefix is set to $(HOME) by default. Are you sure you didn't edit the
Makefileor run any sort of ./configure before "make install" ?After doing a
git clean -f
You need a "git clean -fx"
Quoted 4 lines
According to the INSTALL doc, the default prefix should be ~. However, this is certainly not the case. Either the INSTALL doc needs to be updated or a new default config.mak.autogen needs to be checked in (or perhaps config.mak.autogen needs to be omitted from the repo?).
It's omitted from the repo, but it's in .gitignore so "git clean" doesn't remove it unless you tell it to remove ignored files.
-Daniel
*This .sig left intentionally blank*
Quoted 1 line · Ted Pavlic
According to the INSTALL doc, the default prefix should be ~.
I didn't read that in INSTALL. What I read is that if I only run "make install", the prefix is $HOME, which is true. Now, ./configure uses a default value which is not the one of the Makefile, but that's another point.
Signature · 1 line
Matthieu
Quoted 4 lines · Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:
Quoted 1 line · Ted Pavlic <ted <at> tedpavlic.com> writes:
According to the INSTALL doc, the default prefix should be ~.
I am the same opinion
Quoted 5 lines
I didn't read that in INSTALL. What I read is that if I only run "make install", the prefix is $HOME, which is true. Now, ./configure uses a default value which is not the one of the
Makefile, but that's another point.
May be not, confuses newbies.
------
Lars
2009/1/6 Matthieu Moy <[email protected]>
Quoted 5 lines
Quoted 3 lines · Lars Sadau
i'm a brand-new git user. Just one minute ago I wanted to install git in my home directory. The INSTALL file says type simply "make install", but the makefile does a global installation.
Quoted 8 lines
I was going to write:
Either run ./configure --prefix=$HOME/wherever/you/want or edit the prefix variable in config.mak.
but then realized that prefix is set to $(HOME) by default. Are you sure you didn't edit the
Makefileor run any sort of ./configure before "make install" ?
Or run 'make' as root, as well as 'make install'?
Mike