Git命令在Mac终端中不起作用:“dyld:找不到符号:___ strlcpy_chk”错误 [英] Git commands not working in Mac terminal: "dyld: Symbol not found: ___strlcpy_chk" error
问题描述
I am using the command git clone ssh://.... and getting the following error on the terminal:
我使用git clone ssh:// ....命令并在终端上得到以下错误: > dyld:懒符号绑定失败:找不到符号:___strlcpy_chk
引用自:/ usr / local / git / bin / git
预计位置:/usr/lib/libSystem.B.dylib
dyld:找不到符号:___strlcpy_chk
引用自:/ usr / local / git / bin / git
预计位置:/usr/lib/libSystem.B.dylib
Trace / BPT trap:5
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需要从Xcode安装命令行工具。要做到这一点 -
I needed to install command line tools from Xcode. To do so-
- 打开Xcode并点击
Cmd
+,
- 单击下载
- 安装命令行工具。
- Open Xcode and hit
Cmd
+,
- Click Downloads
- Install command line tools.
http://www.hongkiat.com/blog/mountain-lion-git-fix/
这篇关于Git命令在Mac终端中不起作用:“dyld:找不到符号:___ strlcpy_chk”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!