threads / discuss / 11630

First time compiling source

Subject: First time compiling source

## tl;dr

4 messages between Jan 15, 2008 and Jan 15, 2008.

replies: 3people: 3as markdown or json

Chris Ortman· Jan 15, 2008, 20:34 UTC · lore

Up until today I've always run git off whatever debs come with ubuntu. But if I'm going to try to do some work I figured I should be compiling from source.

To compile I did git co -b current v1.5.3.8 make make install

then to check which git /home/chrisortman/bin/git as expected

however git --version still reports 1.5.2.5
What did I miss?
Thanks
Jeff King· Jan 15, 2008, 20:56 UTC · re: Chris Ortman · lore

Re: First time compiling source

On Tue, Jan 15, 2008 at 02:34:12PM -0600, Chris Ortman wrote:
Show 8 quoted lines
> then to check
> which git
> /home/chrisortman/bin/git
> as expected
> 
> however git --version still reports 1.5.2.5
> 
> What did I miss?

Is bash caching the location of git? Try 'type git' in that shell, or try running 'git --version' from a new shell.

-Peff
Chris Ortman· Jan 15, 2008, 21:01 UTC · re: Jeff King · lore

Re: First time compiling source

That was it, thanks.
On Jan 15, 2008 2:56 PM, Jeff King <peff@peff.net> wrote:
Show 16 quoted lines
> On Tue, Jan 15, 2008 at 02:34:12PM -0600, Chris Ortman wrote:
>
> > then to check
> > which git
> > /home/chrisortman/bin/git
> > as expected
> >
> > however git --version still reports 1.5.2.5
> >
> > What did I miss?
>
> Is bash caching the location of git? Try 'type git' in that shell, or
> try running 'git --version' from a new shell.
>
> -Peff
>
Alex Riesen· Jan 15, 2008, 21:23 UTC · re: Chris Ortman · lore

Re: First time compiling source

Chris Ortman, Tue, Jan 15, 2008 21:34:12 +0100:
Show 17 quoted lines
> Up until today I've always run git off whatever debs come with ubuntu.
> But if I'm going to try to do some work I figured I should be
> compiling from source.
> 
> To compile I did
> git co -b current v1.5.3.8
> make
> make install
> 
> then to check
> which git
> /home/chrisortman/bin/git
> as expected
> 
> however git --version still reports 1.5.2.5
> 
> What did I miss?

The git in /usr/bin is stuck in hashed paths of your shell? For instance, bash remembers all the programs it managed to exec.

← back to recent threads