Archive. This is an archive of the Apple Support Community. Discussions are being restored and soon you will be able to read and post here again.

Bad cpu type in executable

After downloading the Mac OS Catalina update, I have been getting the error message “zsh: bad cpu type in executable” while using JGrasp and photorec on terminal. I shell has already been changed from bash to zsh, but I still get these errors while compiling/running programs. How can I fix this?

3 replies

At the risk of repeating myself, find and expunge the 32-bit code. Ensure you’ve followed the install sequence, particularly around installing testdisk, and read the release notes: https://www.cgsecurity.org/wiki/TestDisk_Download

There’s probably some 32-bit code lurking somewhere in your tool chain, and you’re going to get to find and resolve that.

Which version of jGRASP and which version of Java is installed, or which bundled version of jGRASP is installed?

So i've re-downloaded the latest version of jGRASP and now it runs fine. However, my terminal is still giving me the bad cpu message when I try to run PhotoRec.