* BUG?? INSTALL MAKEFILE
@ 2009-01-06 13:26 Lars Sadau
2009-01-06 14:56 ` Matthieu Moy
0 siblings, 1 reply; 8+ messages in thread
From: Lars Sadau @ 2009-01-06 13:26 UTC (permalink / raw)
To: git
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 13:26 BUG?? INSTALL MAKEFILE Lars Sadau
@ 2009-01-06 14:56 ` Matthieu Moy
2009-01-06 15:22 ` Mike Ralphson
2009-01-06 16:26 ` Ted Pavlic
0 siblings, 2 replies; 8+ messages in thread
From: Matthieu Moy @ 2009-01-06 14:56 UTC (permalink / raw)
To: Lars Sadau; +Cc: git
Lars Sadau <lars@sadau-online.de> writes:
> 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" ?
--
Matthieu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 14:56 ` Matthieu Moy
@ 2009-01-06 15:22 ` Mike Ralphson
2009-01-06 16:26 ` Ted Pavlic
1 sibling, 0 replies; 8+ messages in thread
From: Mike Ralphson @ 2009-01-06 15:22 UTC (permalink / raw)
To: Lars Sadau; +Cc: Matthieu Moy, git
2009/1/6 Matthieu Moy <Matthieu.Moy@imag.fr>
> Lars Sadau <lars@sadau-online.de> writes:
> > 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" ?
Or run 'make' as root, as well as 'make install'?
Mike
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 14:56 ` Matthieu Moy
2009-01-06 15:22 ` Mike Ralphson
@ 2009-01-06 16:26 ` Ted Pavlic
2009-01-06 17:17 ` Matthieu Moy
` (2 more replies)
1 sibling, 3 replies; 8+ messages in thread
From: Ted Pavlic @ 2009-01-06 16:26 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Lars Sadau, git
> 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" ?
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
--
Ted Pavlic <ted@tedpavlic.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 16:26 ` Ted Pavlic
@ 2009-01-06 17:17 ` Matthieu Moy
2009-01-07 10:44 ` Lars Sadau
2009-01-06 17:24 ` Daniel Barkalow
2009-01-06 19:44 ` Ted Pavlic
2 siblings, 1 reply; 8+ messages in thread
From: Matthieu Moy @ 2009-01-06 17:17 UTC (permalink / raw)
To: Ted Pavlic; +Cc: Lars Sadau, git
Ted Pavlic <ted@tedpavlic.com> writes:
> 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.
--
Matthieu
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 17:17 ` Matthieu Moy
@ 2009-01-07 10:44 ` Lars Sadau
0 siblings, 0 replies; 8+ messages in thread
From: Lars Sadau @ 2009-01-07 10:44 UTC (permalink / raw)
To: git
Matthieu Moy <Matthieu.Moy <at> imag.fr> writes:
>
> Ted Pavlic <ted <at> tedpavlic.com> writes:
>
> > According to the INSTALL doc, the default prefix should be ~.
I am the same opinion
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 16:26 ` Ted Pavlic
2009-01-06 17:17 ` Matthieu Moy
@ 2009-01-06 17:24 ` Daniel Barkalow
2009-01-06 19:44 ` Ted Pavlic
2 siblings, 0 replies; 8+ messages in thread
From: Daniel Barkalow @ 2009-01-06 17:24 UTC (permalink / raw)
To: Ted Pavlic; +Cc: Matthieu Moy, Lars Sadau, git
On Tue, 6 Jan 2009, Ted Pavlic wrote:
> > 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" ?
>
> After doing a
>
> git clean -f
You need a "git clean -fx"
> 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*
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: BUG?? INSTALL MAKEFILE
2009-01-06 16:26 ` Ted Pavlic
2009-01-06 17:17 ` Matthieu Moy
2009-01-06 17:24 ` Daniel Barkalow
@ 2009-01-06 19:44 ` Ted Pavlic
2 siblings, 0 replies; 8+ messages in thread
From: Ted Pavlic @ 2009-01-06 19:44 UTC (permalink / raw)
To: git
> 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
--
Ted Pavlic <ted@tedpavlic.com>
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2009-01-07 11:01 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-06 13:26 BUG?? INSTALL MAKEFILE Lars Sadau
2009-01-06 14:56 ` Matthieu Moy
2009-01-06 15:22 ` Mike Ralphson
2009-01-06 16:26 ` Ted Pavlic
2009-01-06 17:17 ` Matthieu Moy
2009-01-07 10:44 ` Lars Sadau
2009-01-06 17:24 ` Daniel Barkalow
2009-01-06 19:44 ` Ted Pavlic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).