Then it might just be that /usr/local/git is not in your path.
In the terminal, do:
which git
If git can be found, it will say something like: /usr/local/git/bin/git
If nothing is returned, it doesn’t find the git application. If so,
add this to your ~/.bash_login file (if it doesn’t exist, create it):
Then it might just be that /usr/local/git is not in your path.
In the terminal, do:
which git
If git can be found, it will say something like: /usr/local/git/bin/git
If nothing is returned, it doesn’t find the git application. If so,
add this to your ~/.bash_login file (if it doesn’t exist, create it):
What does echo $PATH
output?
Personally I can never remember the difference
between .bash_login, .bash_profile, .bash_rc etc…
In 10.5 at least there is another mechanism:
if you create a file in /etc/paths.d containing the path you want then
that will be added to the search list.
Then it might just be that /usr/local/git is not in your path.
In the terminal, do:
which git
If git can be found, it will say something like: /usr/local/git/bin/git
If nothing is returned, it doesn’t find the git application. If so,
add this to your ~/.bash_login file (if it doesn’t exist, create it):
Hi Fred, seems like our comments have crossed each other. Still in the
high name of knowledge sharing here’s the answer:
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/opt/local/bin
$ which git
/usr/local/bin/git
Thanks for the tip with /etc/paths.d. I was initially also taken aback
by the ~/.bash_login file, because on my machine there’s a file at root
level named #.bash_profile# . When I cat this file, nothing comes out of
it. Yet when I open it in a text program the contents are the same as in
the (hidden!) ~/.bash_login file! What most strange is when I do a ls -a
BOTH these files are displayed:
What does echo $PATH
output?
Personally I can never remember the difference
between .bash_login, .bash_profile, .bash_rc etc…
In 10.5 at least there is another mechanism:
if you create a file in /etc/paths.d containing the path you want then
that will be added to the search list.
Fred
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.