michaeleisel/zld

Can't run zld from releases

anacrolix opened this issue · 3 comments

Using the binary in the latest release package:

$ file /Users/anacrolix/Downloads/zld
/Users/anacrolix/Downloads/zld: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64]
/Users/anacrolix/Downloads/zld (for architecture x86_64):	Mach-O 64-bit executable x86_64
/Users/anacrolix/Downloads/zld (for architecture arm64):	Mach-O 64-bit executable arm64
$ /Users/anacrolix/Downloads/zld
dyld[61789]: Library not loaded: @rpath/libLTO.dylib
  Referenced from: /Users/anacrolix/Downloads/zld
  Reason: tried: '/Users/anacrolix/Downloads/libLTO.dylib' (no such file), '/var/db/xcode_select_link/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib' (no such file), '/usr/local/lib/libLTO.dylib' (no such file), '/Users/anacrolix/Downloads/libLTO.dylib' (no such file), '/var/db/xcode_select_link/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib' (no such file), '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/libLTO.dylib' (no such file), '/usr/local/lib/libLTO.dylib' (no such file), '/usr/local/lib/libLTO.dylib' (no such file), '/usr/lib/libLTO.dylib' (no such file)
Abort trap: 6

Am I missing a dependency or something?

Please install Xcode first

Thank you. It wasn't clear that Xcode was also needed just to run, if I got a precompiled binary.

updated readme in cb2b346