我正在尝试在 hetzner 上的 CentOS 9 上安装 yq。
wget https://github.com/mikefarah/yq/releases/download/v4.27.5/yq_linux_arm64 && chmod +x yq_linux_arm64 && ./yq_linux_arm64
错误是:
bash: ./yq_linux_arm64: cannot execute binary file: Exec format error
拱门信息:
[root@centos-2gb-nbg1-1 ~]# uname -a
Linux centos-2gb-nbg1-1 5.14.0-148.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Aug 19 13:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
答案1
您下载了为 ARM CPU 编译的二进制文件,并尝试在 X86 CPU 上执行它。
正确的二进制应该是yq_linux_amd64