Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Ruby Ruby Foundations Ruby Basics Installing Ruby

Installing Homebrew Mac OS X (10.7)

Unlike the video, brew.sh, no longer contains an install homebrew button. Pasting the code, under the heading Install Homebrew, results in the following error: line 21: /usr/local/Cellar/rbenv/0.4.0/libexec/rbenv: No such file or directory

If I restart a terminal window I get:

-bash: rbenv: command not found

It's not at all clear what to do from here 8-(

1 Answer

First thing you need to make sure you have a current version of xcode.

Secondly, which directory are you in while executing the command? Are you executing the proper command? You should be putting in: ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"

This is assuming ruby is installed. You can check for the version by typing in 'ruby -v'. To get the latest stable version type in 'rvm get stable'.

Ian's suggestion worked. Thanks! For more details, I just found the following more detailed instructions: http://v.gd/DQslCs