Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Dan Flynn
Dan Flynn
2,032 Points

Uninstalling osx-gcc-installer

Anybody know how to uninstall osx-gcc-installer? I have tried a number of things that I found on the internet including deleting xcode and re installing it but every time I run brew doctor I get this message "You seem to have osx-gcc-installer installed.
Homebrew doesn't support osx-gcc-installer. It causes many builds to fail and

is an unlicensed distribution of really old Xcode files.

Please run xcode-select --install to install the CLT."

4 Answers

Ernest Romero Climent
Ernest Romero Climent
4,511 Points

Ok I think I got it. Read http://github.com/kennethreitz/osx-gcc-installer/ in the Troubleshooting section:

Do not install this if you already have Xcode installed! Mixing Xcode and osx-gcc-installer is known to cause various difficult-to-diagnose problems and is not recommended.

Thus, we need to uninstall Xcode and the osx-gcc-installer:

  1. Run /Library/Developer/4.1/uninstall-devtools -mode=all

  2. Uninstall Xcode

3.Run brew doctor It should output something like this: Warning: No compiler found in /usr/bin! Warning: No developer tools installed. You should install the Command Line Tools. Run `xcode-select --install` to install them.

  1. Restart the machine

  2. Now install Xcode and run again brew doctor

Voilรก

Dan Flynn
Dan Flynn
2,032 Points

Thank you for that link, I have tried the first option that was posted on there but not the second one. I'll give it a shot but the only problem is I really don't want to have to uninstall xcode to do it because it takes so long to re install. Also, I read on stack over flow that with xcode 5 (which is what I have) the "sudo /Developer/Library/uninstall-devtools -mode=all" method doesn't work and that the only way to do it is to delete xcode entirely by throwing it in the trash bin and emptying it, which I have already done, then reinstalled xcode and brew doctor says I still have the gcc installer :(

Ernest Romero Climent
Ernest Romero Climent
4,511 Points

Any solution on this? I'm running the same problem