简体   繁体   English

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

[英]Cannot run git clone command on Mac OS X

I'm trying to make git clone work with Mac OS X Mountain Lion, the git installed fine but doing git clone does not and just throws: 我正在尝试使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

I've tried the SO answers with having a .bash_profile and restarting the machine, but none worked. 我已经尝试过使用.bash_profile并重新启动计算机,从而解决了所有问题,但均无效果。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM