문제

If I log in my account (osx 10.15.6), I get from the start-gpg-agent.app an error message:

error "sh: /usr/local/bin/gpg-agent: Bad CPU type in executable" number 126

How can I fix it? Apple support recommend to change the default shell to zsh. But this not change the error.

올바른 솔루션이 없습니다

다른 팁

Most probably you have gpg-agent installed in a 32-bit version. macOS 10.15 only supports 64-bit programs, so it tells you the CPU type in the executable is not supported.

The fix is to reinstall gpg-agent in the 64-bit version.

You can check the type of executable by running the following in the Terminal:

file /usr/local/bin/gpg-agent

Most probably it will say:

/usr/local/bin/gpg-agent: Mach-O executable i386

Here "i386" means that it is compiled for a 32-bit CPU architecture.

After replacing gpg-agent with the 64-bit version, you should see an output like:

/usr/local/bin/gpg-agent: Mach-O 64-bit executable x86_64
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 apple.stackexchange
scroll top