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

"Installing Ruby" Video

~6 min. into the video I am prompted to enter

mate ~/.bash_profile

and in return I get

-bash: mate: command not found

At this point, I have no idea what this means, or how to attempt a troubleshoot.

10 Answers

James Barnett
James Barnett
39,199 Points

@Matt - mate is the command line version of Textmate a popular text editor on OS X.

What OS are you using? Windows? OS X? Linux?

OS X 10.8.2

I was using the Terminal utility for Mac to do the install outlined in the "Installing Ruby" video. Does that mean my setup will be different than what is shown in the video?

James Barnett
James Barnett
39,199 Points

@Matt - It means you don't have textmate installed, which is fine because textmate is software you have to buy. Just use the nano text editor instead. Substitute nano everywhere the video uses mate

That worked, thank you. So, I can continue to use nano instead of mate in all instances, even past the first video?

James Barnett
James Barnett
39,199 Points

@Matt - Yes indeed.

In fact any time you need to edit a file via the command line on OS X (or Linux for that matter) you can use nano.


I'd suggest that there should probably be a teacher's note about this.

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

@James Great suggestion! I've added a teacher's not for it.

James Barnett
James Barnett
39,199 Points

@Jason - Thanks :smile:

I love how responsive to suggestions the teachers at Treehouse are.

Scott Reuber
PLUS
Scott Reuber
Courses Plus Student 12,756 Points

I see on the teacher's note it says 'open -e' instead of 'nano' as James recommended here…what's the difference, if I might ask?

Jason Seifer
STAFF
Jason Seifer
Treehouse Guest Teacher

"open -e" will open the file in Text Edit which is a text editor that comes with every Mac.