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

Problems Installing Ruby

Everything seemed to be working until I got Ruby Version Manager installer, which gave me this line below.

daniels-imac-2:~ dsully15$ $ \curl -L https://get.rvm.io | bash -s stable --ruby -bash: $: command not found

I did have Xcode installed, which I read somewhere that it could cause problems, but I uninstalled it and then reinstalled. I am kind of lost, so any help is appreciated.

4 Answers

To be a little clearer, after I follow the instructions to install GIT, this is what happens.

daniels-imac-2:~ dsully15$ brew install git Warning: A newer Command Line Tools for Xcode release is avaliable You should install the latest version from: http://connect.apple.com ==> Downloading http://git-core.googlecode.com/files/git-1.8.1.tar.gz Already downloaded: /Library/Caches/Homebrew/git-1.8.1.tar.gz ==> make prefix=/usr/local/Cellar/git/1.8.1 CC=/usr/bin/llvm-gcc CFLAGS=-Os -w - ==> make CC=/usr/bin/llvm-gcc CFLAGS=-Os -w -pipe -march=core2 -msse4 -mmacosx-v git-credential-osxkeychain.c:131: error: 'protocol' undeclared (first use in this function) git-credential-osxkeychain.c:131: error: 'kSecProtocolTypeHTTPS' undeclared (first use in this function) git-credential-osxkeychain.c:133: error: 'kSecProtocolTypeHTTP' undeclared (first use in this function) git-credential-osxkeychain.c:141: error: 'port' undeclared (first use in this function) make: *** [git-credential-osxkeychain.o] Error 1

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

These open issues may also help: https://github.com/mxcl/homebrew/issues/11481 https://github.com/mxcl/homebrew/issues/16194 https://github.com/mxcl/homebrew/issues/16876 https://github.com/mxcl/homebrew/issues/16992 daniels-imac-2:~ dsully15$

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

Hey Daniel,

Try installing the latest Command Line Tools for Xcode. Also, try pasting the curl command without the preceding "$" character and see if that fixes it.

I figured it out. I just downloaded the Command Line Code for Xcode here https://developer.apple.com/downloads/index.action# In case anyone else had this problem.

Haha, I just saw your message telling me to download the Command Line Code, thank you! I read it on stackoverflow, then saw your post, it worked though.