【发布时间】:2013-10-27 15:43:36
【问题描述】:
我试图用我拥有的一些别名在新的 Mac 上修复我的 .bashrc,并且我创建了一个 .bash_profile 以尝试在终端打开时加载 .bashrc。但是,每次我尝试使用 git 命令时,它都会给我这个错误。
git status
dyld: lazy symbol binding failed: Symbol not found: _iconv_open
Referenced from: /usr/bin/git
Expected in: /opt/local/lib/libiconv.2.dylib
dyld: Symbol not found: _iconv_open
Referenced from: /usr/bin/git
Expected in: /opt/local/lib/libiconv.2.dylib
Trace/BPT trap: 5
我删除了.bash_profile,甚至恢复了.bashrc,但还是不行。有什么想法吗?
旁注:我查看了Git > dyld: lazy symbol binding failed: Symbol not found: _iconv_open,但他的解决方案似乎对我不起作用,因为我现在根本没有 bash_profile。
【问题讨论】:
-
问题是 SourceTree 使用嵌入式 git 而不是系统的。 see my answer