无法在Mac OS X上运行git clone命令

时间:2014-05-28 08:58:50

标签: macos git

我试图让git clone与Mac OS X Mountain Lion一起工作,git安装得很好但是做git clone并没有,只是抛出:

dyld: lazy symbol binding failed: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ___strlcpy_chk
  Referenced from: /usr/local/git/bin/git
  Expected in: /usr/lib/libSystem.B.dylib

Trace/BPT trap: 5

我已经通过.bash_profile尝试了SO答案并重新启动了计算机,但都没有用。

1 个答案:

答案 0 :(得分:1)

(重新)安装XCode和命令行工具:http://www.hongkiat.com/blog/mountain-lion-git-fix/