Re: [git-users] Re: git: Command not found.
Right, in the "set PATH", use a colon, not a space. On Fri, Mar 1, 2013 at 4:07 PM, wrote: > Ryan, > > Thanks for your help. Here is the output: > > echo $PATH > /usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin > /usr/local/git/bin > > As you can see, git is now in the PATH - BUT - it is preceded by a space > not a colon so when I type "git status" in any git directory, I still > receive "git: Command not found" > > I'm assuming the problem is the space/colon? > > -- > You received this message because you are subscribed to the Google Groups > "Git for human beings" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to git-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really think we'd stick around to tell you? Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
> From: banaca...@gmail.com > > Here is what is returned: > > ps $$ > PID TT STAT TIME COMMAND > 28206 s000 S 0:00.02 -tcsh > > I confess I don't know what this means. It means that your shell program is the program called "tcsh". It is common enough that it has a Wikipedia page: http://en.wikipedia.org/wiki/Tcsh If you search for "set PATH in tcsh", the second hit is http://kb.iu.edu/data/acar.html which says To modify your path If you are using csh or tcsh, at the shell prompt, enter: setenv PATH $PATH\:/dir/path Assuming that your git executable is located at /usr/local/git/bin/git, this means you should do setenv PATH $PATH\:/usr/local/git/bin (The PATH is a list of directories in which to search for program names such as "git".) You can tell if /usr/local/git/bin/git is correct by ls -l /usr/local/git/bin/git If that isn't right, a brute-force way to search for git is find / -name git That will probably generate many lines of error messages, but among them will be the proper path name of every file and directory named "git". Dale -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
> > I'm assuming the problem is the space/colon? Agh. Yea, my bad. Use a colon, not a space. *That* should solve your problem. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
Ryan, Thanks for your help. Here is the output: echo $PATH /usr/local/mysql/bin:/usr/local/mysql/bin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin /usr/local/git/bin As you can see, git is now in the PATH - BUT - it is preceded by a space not a colon so when I type "git status" in any git directory, I still receive "git: Command not found" I'm assuming the problem is the space/colon? -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
> > PID TT STAT TIME COMMAND > 28206 s000 S 0:00.02 -tcsh > > I confess I don't know what this means. > That means you're using tcsh as your shell, which doesn't use the `export` command. Try the following: set PATH = ($PATH /usr/local/git/bin) That should (hopefully) solve your problem. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
Dale, Here is what is returned: ps $$ PID TT STAT TIME COMMAND 28206 s000 S 0:00.02 -tcsh I confess I don't know what this means. -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
Ryan, I ran it, here is the output: bash bash-3.2$ export PATH=/usr/local/git/bin:$PATH bash-3.2$ git --version git version 1.7.9.1 bash-3.2$ exit Unfortunately I still receive "git: Command not found" when I enter git status at the prompt in ANY of my git enabled directories. Also, I did an echo $PATH after running your command and the path has not changed. Any thoughts? -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
> From: banaca...@gmail.com > > I suppose I should say that I'm running OSX 10.8.2 on an iMac. The command ps $$ will show something like PID TTY STAT TIME COMMAND 12596 pts/1Ss 0:00 /bin/bash --noediting -i The question is what is showing under "COMMAND". In my case, it is "/bin/bash", which means I'm running the "bash" shell. Various different shells have different syntaxes for controlling the "path" directories. Dale -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [git-users] Re: git: Command not found.
> > I tried entering this in a Terminal window: > export PATH=/usr/local/git/bin:$PATH > but I get this: > export: Command not found. I just tried this in my Terminal, and it worked fine. It sounds like maybe you are using a different shell? You can see what shell Terminal is using in the "Preferences". As a quick check, try running the following: bash export PATH=/usr/local/git/bin:$PATH git --version exit That will switch to the bash shell, which *does* have an export command, so you should be able to update your path and run git commands. The last one switches out of bash and back into your default shell. Hope that's on the right track. Ryan -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.