问题
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 specificallyuname -p
来源:https://stackoverflow.com/questions/31251187/bad-cpu-type-in-executable-osx