Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Issue when using hombrew: "/usr/bin/otool: Bad CPU type in executable" #48104
After not using home-brew for a while, I wanted to install port audio through brew. I was trying to set up this git hub project that introduces a different kind of soundcloud client.
When I try to run
I googled around and found out that some issues occure in combination with Xcode on Mac, especially when you installed an older version of Xcode. One post I found suggested that the problem occurs when you have very old files in your /bin/ folder. The author of the post had tried to install a very old version of Xcode and had files in his /bin/ folder that where dated to 2003. I also tried to install an older version of Xcode in the past and I too found files in my /bin/ folder that are dated to 2003, although I am using a Retina MacBook.
The post suggested that these files interfere with homebrew because it expects a different kind of CPU. This is as far as my knowledge goes and I don't really understand how these files suddenly make homebrew think that I have a different CPU.
I tried to completely deinstall Xcode but the problem still arises. I have since installed the newest version of Xcode which I successfully deleted but I am not sure if I managed all things related to the old version of Xcode that I tried to install. Also the post didn't really explain how to fix the problem, I only understood that the problem is somehow related to these 2003 files.
I tried to delete the files that are dated back to 2003, but that didn't really fix the issue. When I try running something like
So I am basically just wondering now what I actually have to do with these files to fix the issue.
Thanks for any help!
After that I tried to run
I guess the update for the new Command Line Tools is necessary? I wasn't able to update them yet due to a slow internet connection.
@MikeMcQuaid Thanks for the info. But even after updating up the Command Line Tools I still get this error whenever I run
Nevermind. Solved it after digging around for hours. Downloaded the El Capitan official installer from the MAS, and then mounted the EDP Installer from inside it. (From Terminal, cannot be done from Finder). Then ran the Essentials.pkg installer from inside the mounted drive. Waited for 15 minutes. Bingo. Everything working. I had messed up the system by installing a very old version of Xcode that set my /usr/bin files to files from 2003! El Capitan Installer helped save the day. Sorry for the previous hate, Homebrew, you're a life saver to manage dependencies.