bash 可执行 osx 中的 CPU 类型错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/31251187/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
bad cpu type in executable osx
提问by asdf1234
I'm trying to install the OS X command line tools, and I've tried the beta, and the most recent and nothing is working. Every time I try to use one of the tools something like this happens, my example is make and gnumake as those are what I need right now
我正在尝试安装 OS X 命令行工具,并且我已经尝试了测试版,并且最近没有任何工作。每次我尝试使用其中一种工具时都会发生这样的事情,我的例子是 make 和 gnumake 因为它们正是我现在需要的
-bash: /usr/bin/gnumake: Bad CPU type in executable
-bash: /usr/bin/gnumake: 可执行文件中的 CPU 类型错误
-bash: /usr/bin/make: Bad CPU type in executable
-bash: /usr/bin/make: 可执行文件中的 CPU 类型错误
note, I am running Yosemite 10.10.4, and my processor is a 2.8 GHz Intel Core i5. If you need any more info be sure to let me know
请注意,我运行的是 Yosemite 10.10.4,我的处理器是 2.8 GHz Intel Core i5。如果您需要更多信息,请务必让我知道
回答by Eugeniu Rosca
Your /usr/bin/make
ELF executable was compiled for a different CPU.
您的/usr/bin/make
ELF 可执行文件是为不同的 CPU 编译的。
The outputs of below commands should return different processors:
以下命令的输出应返回不同的处理器:
file /usr/bin/make
uname -a
or specificallyuname -p
file /usr/bin/make
uname -a
或者特别是uname -p