bad cpu type in executable osx

南笙酒味 提交于 2020-01-04 02:33:08

问题


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

-bash: /usr/bin/gnumake: Bad CPU type in executable

-bash: /usr/bin/make: Bad CPU type in executable

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


回答1:


Your /usr/bin/make ELF executable was compiled for a different CPU.

The outputs of below commands should return different processors:

  • file /usr/bin/make
  • uname -a or specifically uname -p


来源:https://stackoverflow.com/questions/31251187/bad-cpu-type-in-executable-osx

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!