我不知道发生了什么,但突然间我所有的 git 命令都不再工作了,这是我收到的错误消息。
$ git show
dyld: lazy symbol binding failed: Symbol not found: _iconv_open
Referenced from: /usr/local/bin/git
Expected in: /Applications/MAMP/Library/lib//libiconv.2.dylib
dyld: Symbol not found: _iconv_open
Referenced from: /usr/local/bin/git
Expected in: /Applications/MAMP/Library/lib//libiconv.2.dylib
任何帮助表示赞赏,谢谢!
附加信息: 当我检查 libiconv.2.dylib 文件时,它给了我这个输出:
$ file /usr/lib/libiconv.2.dylib
/usr/lib/libiconv.2.dylib: Mach-O universal binary with 2 architectures
/usr/lib/libiconv.2.dylib (for architecture i386): Mach-O dynamically linked shared library i386
/usr/lib/libiconv.2.dylib (for architecture x86_64): Mach-O 64-bit dynamically linked shared library x86_64
我理解应该是 3 种架构,我将如何添加第三种架构?
编辑:
这些是里面的链接/Applications/MAMP/Library/lib/
-rwxrwxr-x 1 mm admin 1194 Jan 22 10:52 libgettextsrc.la
-rwxrwxr-x 1 nm admin 2241972 Jan 22 11:00 libiconv.2.dylib
lrwxr-xr-x 1 nm admin 16 Mar 1 10:06 libiconv.dylib -> libiconv.2.dylib