threads / discuss / 16482

git configure script

Subject: git configure script

## tl;dr

4 messages between Nov 26, 2008 and Dec 1, 2008.

replies: 3people: 3as markdown or json

Neale T. Pickett· Nov 26, 2008, 19:30 UTC · lore

I downloaded 1.6.0.4 from http://kernel.org/pub/software/scm/git/git-1.6.0.4.tar.gz and ran

  ./configure --prefix=$HOME/opt

But it installed everything in $HOME/bin and $HOME/libexec. Looking into it, it seems the shipped Makefile doesn't look to see what --prefix is, despite the configure script claiming that "make install" would honor this.

I'm guessing it should have shipped with a Makefile.in or something, but honestly Autoconf confuses the dickens out of me.

Neale
Matthieu Moy· Nov 26, 2008, 20:53 UTC · re: Neale T. Pickett · lore

Re: git configure script

neale@lanl.gov (Neale T. Pickett) writes:
> But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> into it, it seems the shipped Makefile doesn't look to see what --prefix
> is, despite the configure script claiming that "make install" would
> honor this.

It does, since it includes config.mak.autogen which overrides prefix defined in Makefile.

I'm 99% sure you did something wrong. You should investigate by looking into config.mak.autogen after running configure.

-- 
Matthieu
Mike Ralphson· Nov 27, 2008, 09:25 UTC · re: Matthieu Moy · lore

Re: git configure script

2008/11/26 Matthieu Moy <Matthieu.Moy@imag.fr>
Show 13 quoted lines
>
> neale@lanl.gov (Neale T. Pickett) writes:
>
> > But it installed everything in $HOME/bin and $HOME/libexec.  Looking
> > into it, it seems the shipped Makefile doesn't look to see what --prefix
> > is, despite the configure script claiming that "make install" would
> > honor this.
>
> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.

Indeed. I believe something goes a little funny if you build as root. Can you try again running ./configure and (g)make as a non-root user, then only (g)make install as root / under sudo etc.

Cheers, Mike
Neale T. Pickett· Dec 1, 2008, 19:12 UTC · re: Matthieu Moy · lore

Re: git configure script

Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Show 5 quoted lines
> It does, since it includes config.mak.autogen which overrides prefix
> defined in Makefile.
>
> I'm 99% sure you did something wrong. You should investigate by
> looking into config.mak.autogen after running configure.
This gave me the tip I needed.  I was doing this in my Makefile:
    make -C git-1.6.0.4 install
Instead of this:
    cd git-1.6.0.4 && make install

Since the include was prefixed with "-", I didn't get any warnings or errors about not being able to find config.mak.autogen, and it fell back to the default.

I'm not sure using the -C option to make is "something wrong", but then again I am apparently the first person to run into this problem, so it's probably not a big deal.

Thanks for your help :)
Neale

← back to recent threads