Git 命令在 Mac 终端中不起作用:“dyld:找不到符号:___strlcpy_chk";错误 [英] Git commands not working in Mac terminal: "dyld: Symbol not found: ___strlcpy_chk" error

查看:32
本文介绍了Git 命令在 Mac 终端中不起作用:“dyld:找不到符号:___strlcpy_chk";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用命令 git clone ssh://.... 并在终端上收到以下错误:

I am using the command git clone ssh://.... and getting the following error on the terminal:

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

推荐答案

我需要从 Xcode 安装命令行工具.这样做 -

I needed to install command line tools from Xcode. To do so-

  1. 打开Xcode并点击Cmd+,
  2. 点击下载
  3. 安装命令行工具.

http://www.hongkiat.com/blog/mountain-lion-git-fix/

这篇关于Git 命令在 Mac 终端中不起作用:“dyld:找不到符号:___strlcpy_chk";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆