# First time compiling source

4 messages from 2008-01-15 to 2008-01-15. Participants: Chris Ortman, Jeff King, Alex Riesen.
Thread: https://gitlist.dev/t/11630

## Chris Ortman, 2008-01-15 20:34

Subject: First time compiling source
Message-ID: <c0f2d4110801151234i2292ad2aw48e38f4f4fcb5ee7@mail.gmail.com>
URL: https://gitlist.dev/e/c0f2d4110801151234i2292ad2aw48e38f4f4fcb5ee7%40mail.gmail.com

```
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, 2008-01-15 20:56

Subject: Re: First time compiling source
Message-ID: <20080115205603.GA12055@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20080115205603.GA12055%40coredump.intra.peff.net
In-Reply-To: <c0f2d4110801151234i2292ad2aw48e38f4f4fcb5ee7@mail.gmail.com>

```
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

```

## Chris Ortman, 2008-01-15 21:01

Subject: Re: First time compiling source
Message-ID: <c0f2d4110801151301m18f65fa5x29eb8f5b6d3e2ece@mail.gmail.com>
URL: https://gitlist.dev/e/c0f2d4110801151301m18f65fa5x29eb8f5b6d3e2ece%40mail.gmail.com
In-Reply-To: <20080115205603.GA12055@coredump.intra.peff.net>

```
That was it, thanks.

On Jan 15, 2008 2:56 PM, Jeff King <peff@peff.net> wrote:
> 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, 2008-01-15 21:23

Subject: Re: First time compiling source
Message-ID: <20080115212332.GD3213@steel.home>
URL: https://gitlist.dev/e/20080115212332.GD3213%40steel.home
In-Reply-To: <c0f2d4110801151234i2292ad2aw48e38f4f4fcb5ee7@mail.gmail.com>

```
Chris Ortman, Tue, Jan 15, 2008 21:34:12 +0100:
> 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.

```
