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

Jordan Pierre
Jordan Pierre
16,601 Points

Problems installing Ruby

Hello All,

I am currently on the Rails Development track. I was able to install the Ruby Development Environment with no problems and now I am in the Ruby Basics on the Ruby Foundations course. I installed Homebrew successfully but when I try to install "brew install git" I start having problems. This is the message I get in the console after I type in "brew install git":

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. ==> Downloading https://www.kernel.org/pub/software/scm/git/git-2.1.0.tar.gz

################################################################## 100.0%

==> Patching patching file contrib/subtree/Makefile ==> make prefix=/usr/local/Cellar/git/2.1.0 sysconfdir=/usr/local/etc CC=llvm-gcc CFLAGS= LDFLAGS= install ==> make CC=llvm-gcc CFLAGS= LDFLAGS= git-credential-osxkeychain.c:139: error: ‘kSecProtocolTypeHTTPS’ undeclared (first use in this function) git-credential-osxkeychain.c:141: error: ‘kSecProtocolTypeHTTP’ undeclared (first use in this function) git-credential-osxkeychain.c:143: error: ‘kSecProtocolTypeSMTP’ undeclared (first use in this function) git-credential-osxkeychain.c:151: error: ‘port’ undeclared (first use in this function) make: *** [git-credential-osxkeychain.o] Error 1 couldn't understand kern.osversion 14.0.0' couldn't understand kern.osversion14.0.0'

READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting

These open issues may also help: Added new formaula for git-latexdiff (https://github.com/Homebrew/homebrew/pull/31683) Error: Permission denied - /Library/Caches/Homebrew/Formula/git.brewing (https://github.com/Homebrew/homebrew/issues/31460) brew git install failed to build on 10.5.8 (https://github.com/Homebrew/homebrew/issues/31391) brew tap from another git branch or commit (https://github.com/Homebrew/homebrew/issues/28909) git: patch remote helpers' sys.path to find hg/bzr libs (https://github.com/Homebrew/homebrew/pull/27537)

I then typed in "xcode-select --install" in the console and then got this message:

Usage: xcode-select -print-path or: xcode-select -switch <xcode_folder_path> or: xcode-select -version Arguments: -print-path Prints the path of the current Xcode folder -switch <xcode_folder_path> Sets the path for the current Xcode folder -version Prints xcode-select version information

After that I am still not able to to install "brew install git".

3 Answers

If you've already got Ruby installed I wouldn't bother with the install from the Ruby Basics videos from the Foundations course. It's much older material and you're probably having issues with having a newer version of OS X. Just stick with the Ruby environment you've already installed as that's superseded the info from the Basics videos. I'm assuming you're using Vagrant? That's the current recommended development environment for Ruby, you can skip any other install methods from older courses.

Jordan Pierre
Jordan Pierre
16,601 Points

Thank you Andrew,

I was also wondering about that. I wasn't sure if I had to install both. I am using Vagrant. I wish they would make that a little more clear.

I have seen on some videos where superseded installs are mentioned in the notes. Seems like this is a good case to have that here too (Jason Seifer ), although it could be some of these older courses will end up deprecated and/or replaced anyway.

J Scott Erickson
J Scott Erickson
11,883 Points

So, based on what you have said I'm assuming you're on a Mac. Good start. Are you using the most current version of XCode? if not, the first thing I would do is update that. THEN, go in and run the Command line tools task inside of XCode. This may clear up your issues with the osx-gcc-installer.

Jordan Pierre
Jordan Pierre
16,601 Points

Thanks Scott,

I am using a mac, and I think that I did update to the newest version of XCode. But I will try this just to make sure.

Philip Cox
Philip Cox
14,818 Points

Treehouse really should be making clear that you may not require this install if you have the Vagrant VB installed.

Agreed, hopefully the notes will be updated to reflect it or the videos deprecated entirely.