install_name_tool reporting malformed object

前端 未结 2 1019
暗喜
暗喜 2021-02-08 22:33

Everytime I try to use install_name_tool on my machine it reports the following

install_name_tool: object: Abacate malformed object (unknown load command 4)


        
相关标签:
2条回答
  • 2021-02-08 22:59

    Managed to make it work with Mac OS 10.9.3

    https://github.com/Homebrew/homebrew/issues/26544

    $$:~ otool -L /usr/bin/install_name_tool

    /usr/bin/install_name_tool: /usr/lib/libxcselect.dylib (compatibility version 1.0.0, current version 1.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)

    $$:~ pkgutil --file-info /usr/bin/install_name_tool

    volume: / path: /usr/bin/install_name_tool pkgid: com.apple.pkg.Essentials pkg-version: 10.9.0.1.1.1306847324 install-time: 1390577801 uid: 0 gid: 0 mode: 755

    No more errors on wget:

    $$:~ wget dyld: Library not loaded:

    @@HOMEBREW_PREFIX@@/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/bin/wget Reason: image not found

    0 讨论(0)
  • 2021-02-08 23:05

    Apparently install_name_tool is not updated when XCode is updated. You need to install the Command Line Tools from XCode Preferences. See also install_name_tool on OS X Lion. This resolved the same error for me.

    0 讨论(0)
提交回复
热议问题