GIT和'山狮'和' export PATH = / usr / local / git / bin:$ PATH'

时间:2014-09-23 16:41:46

标签: git bash osx-mountain-lion dyld

我在我的Mac山狮10.8.5上安装了GIT 我无法执行GIT命令。

原始问题: 终端

git init new_repository

dyld:lazy symbol binding failed: symbol not found

我找到了几个与$ PATH相关的帖子,我很接近理解这些路径的概念,但我不确定我应该在哪里,哪个目录?我应该运行以下命令。     git init new_repository

这是在帖子中提出的并且有53票。

how do I add /usr/local/git/bin/ to the PATH on mac osx?

该答案的开头 您可以将以下内容添加到〜/ .bash_profile:

export PATH=/usr/local/git/bin:$PATH

更改将在您打开的下一个终端窗口中应用。 答案结束。

使用上面的代码编辑我的.bash_profile没有改变任何内容。

以下是我目前的路径。也许有人会注意到我遗失的东西。

~ mycomputer $ echo $PATH
~ mycomputer $ pwd
/Users/mycomputer
~ mycomputer $ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
mycomputer:~ mycomputer$ 

我希望能够从终端运行git。 有人能解释一下吗? 我修改哪个文件以包含什么路径?

感谢

0 个答案:

没有答案