* git version not changed after installing new version
@ 2012-01-25 16:45 freefly
2012-01-25 16:57 ` Kirill Likhodedov
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: freefly @ 2012-01-25 16:45 UTC (permalink / raw)
To: git
Hi all,
I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
and updated the Path variables by running the script comes with the
package as well. but when I type "git --version" in the terminal
I get 1.7.5.4. Can anyone tell me what is going wrong ?
Kind regards
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: git version not changed after installing new version
2012-01-25 16:45 git version not changed after installing new version freefly
@ 2012-01-25 16:57 ` Kirill Likhodedov
2012-01-25 17:03 ` Thomas Rast
2012-01-25 17:19 ` freefly
2 siblings, 0 replies; 14+ messages in thread
From: Kirill Likhodedov @ 2012-01-25 16:57 UTC (permalink / raw)
To: freefly; +Cc: git
Most likely, you didn't update the PATH well enough.
Check what is the output of 'which git' command. It will point to the xcode installation. So please double check the path.
25.01.2012, в 20:45, freefly:
> Hi all,
> I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
> and updated the Path variables by running the script comes with the
> package as well. but when I type "git --version" in the terminal
> I get 1.7.5.4. Can anyone tell me what is going wrong ?
>
> Kind regards
>
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: git version not changed after installing new version
2012-01-25 16:45 git version not changed after installing new version freefly
2012-01-25 16:57 ` Kirill Likhodedov
@ 2012-01-25 17:03 ` Thomas Rast
2012-01-25 17:19 ` freefly
2 siblings, 0 replies; 14+ messages in thread
From: Thomas Rast @ 2012-01-25 17:03 UTC (permalink / raw)
To: freefly; +Cc: git
freefly <free.fly@live.com> writes:
> Hi all,
> I am new to Mac OS X lion and I had a previous installation of XCODE 4.2
> on my mac mini. It has a git version 1.7.5.4. I installed a new version 1.7.8.4.
> and updated the Path variables by running the script comes with the
> package as well. but when I type "git --version" in the terminal
> I get 1.7.5.4. Can anyone tell me what is going wrong ?
Enter 'which git' in a terminal. The 'which' utility looks up which
executable from $PATH will be run if you use 'git' (in this case) as a
command word, i.e., without specifying its path.
This should point to your newly installed git. It probably doesn't, and
you can compare it and your $PATH (try: 'echo "$PATH"' in a terminal) to
see why.
--
Thomas Rast
trast@{inf,student}.ethz.ch
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: git version not changed after installing new version
2012-01-25 16:45 git version not changed after installing new version freefly
2012-01-25 16:57 ` Kirill Likhodedov
2012-01-25 17:03 ` Thomas Rast
@ 2012-01-25 17:19 ` freefly
2012-01-25 18:57 ` Carlos Martín Nieto
2 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-25 17:19 UTC (permalink / raw)
To: git
Thanks both of you for your replies, I have checked but,
it still points to the old "/usr/bin/git" not the
"/usr/local/git/bin" :(
when I run the update path script I get this output.
No change to PATH in ~/.MacOSX/environment.plist
~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
/Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: git version not changed after installing new version
2012-01-25 17:19 ` freefly
@ 2012-01-25 18:57 ` Carlos Martín Nieto
2012-01-25 19:32 ` freefly
0 siblings, 1 reply; 14+ messages in thread
From: Carlos Martín Nieto @ 2012-01-25 18:57 UTC (permalink / raw)
To: freefly; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 722 bytes --]
On Wed, 2012-01-25 at 17:19 +0000, freefly wrote:
> Thanks both of you for your replies, I have checked but,
> it still points to the old "/usr/bin/git" not the
> "/usr/local/git/bin" :(
What do `which git` and `type git` say? Bash remembers where it ran a
command so if you install a binary to a new location, it might not find
it straight away.
>
> when I run the update path script I get this output.
>
>
> No change to PATH in ~/.MacOSX/environment.plist
> ~ /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
> /Volumes/Git 1.7.8.3 Snow Leopard Intel Universal
So the script detected that no change was needed presumably. What's your
$PATH and is /usr/local/bin/ before /usr/bin/?
cmn
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 490 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: git version not changed after installing new version
2012-01-25 18:57 ` Carlos Martín Nieto
@ 2012-01-25 19:32 ` freefly
2012-01-25 19:58 ` Carlos Martín Nieto
0 siblings, 1 reply; 14+ messages in thread
From: freefly @ 2012-01-25 19:32 UTC (permalink / raw)
To: git
> What do `which git` and `type git` say? Bash remembers where it ran a
> command so if you install a binary to a new location, it might not find
> it straight away.
which git => /usr/bin/git
type git => git is hashed (/usr/bin/git)
> So the script detected that no change was needed presumably. What's your
> $PATH and is /usr/local/bin/ before /usr/bin/?
echo $PATH => /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:
/usr/X11/bin:/usr/local/git/bin:/opt/local/bin
from the above output it is not before /usr/bin :(
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2012-01-26 17:53 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-25 16:45 git version not changed after installing new version freefly
2012-01-25 16:57 ` Kirill Likhodedov
2012-01-25 17:03 ` Thomas Rast
2012-01-25 17:19 ` freefly
2012-01-25 18:57 ` Carlos Martín Nieto
2012-01-25 19:32 ` freefly
2012-01-25 19:58 ` Carlos Martín Nieto
2012-01-25 20:20 ` freefly
2012-01-25 22:29 ` Carlos Martín Nieto
2012-01-26 14:33 ` freefly
2012-01-26 15:13 ` freefly
2012-01-26 16:52 ` Holger Hellmuth
2012-01-26 17:52 ` freefly
2012-01-25 20:23 ` freefly
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).