bad CPU type in executable: svg2key
I'm trying to run svg2key on a MacOs 13.3.1 and I'm getting the message "bad CPU type in executable". Any hint on how to fix that? Or the svg2key does not work on M1 machines?
MacBook Air 13″, macOS 13.3
I'm trying to run svg2key on a MacOs 13.3.1 and I'm getting the message "bad CPU type in executable". Any hint on how to fix that? Or the svg2key does not work on M1 machines?
MacBook Air 13″, macOS 13.3
Run this command in the Terminal, it should return one or two results depending on if the executable is a Universal binary or not:
file /path/to/svg2key
svg2key: Mach-O 64-bit executable arm64
svg2key: Mach-O universal binary with 2 architectures: [x86_64:Mach-O 64-bit executable x86_64] [arm64:Mach-O 64-bit executable arm64]
If it reports anything else, it is not a compatible binary for an M1 Mac. You will need Rosetta2 installed to run X86_64 only binaries on an M1 Mac, and then only if they are supported by Rosetta2 which it would prompt you to install when attempting to run an X86_64 binary.
Or, you are running a 32-bit compiled application which is verboten on M1 Macs.
If I’ve found the right origin for that app…
https://mcb.berkeley.edu/labs/zusman/dave/svg2key/
That app was seemingly built for OS X 10.4.
It’s old, and very likely is 32-bit. If so, it won’t run on current macOS.
It’ll need to be rebuilt for 64-bit. Which can be easy, or can be intractable.
This alternative app looks more likely to work:
bad CPU type in executable: svg2key