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!

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


Alexander Zito-Wolf
Alexander Zito-Wolf
11,964 Points

Problem Installing Ruby and Python Environments, possibly due to GCC / Xcode incompatibility?

I am unable to install Python 3.4 or mySQL through homebrew. I keep getting messages about having GCC installed and how that causes packages to fail.

I get this error message when I try to install python:

Warning: 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. Warning: You have an outdated version of /usr/bin/install_name_tool installed. This will cause binary package installations to fail. This can happen if you install osx-gcc-installer or RailsInstaller. To restore it, you must reinstall OS X or restore the binary from the OS packages.

I searched around on the internet and it looks like there are some major issues with GCC and Xcode. How can I go about reinstalling everything so that I can get all the stuff I need?

1 Answer

Kenneth Love
Kenneth Love
Treehouse Guest Teacher

First off, do you have Xcode installed? If no, install it. Then run the xcode-select --install command which, IIRC, install the command line tools for compiling packages (I hate that OS X doesn't come with GCC and friends pre-installed). Then you should be able to brew install things.