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

Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Windows

Ronnie Barua
Ronnie Barua
17,665 Points

Having trouble with rubyinstaller, DevKit for mac because Jason tell me to Download for windows. Mac can't open

I've bought my new Mac today and can't install ruby. I wonder if I should download from internet but the Mac osx package doesn't have devKit. Any suggestion? Thanks!

12 Answers

Just follow the instructions in the beginner Ruby tutorials.

Ronnie Barua
Ronnie Barua
17,665 Points

Thanks! Is it at treehouse or online?

Just follow the 'Installing Ruby on a Mac video', rather than the Windows one!

If you get to the end of that video and you successfully run "/bin rails server" and open your browser and go to "localhost:3000" and you see the Ruby on Rails screen, you're pretty much good to go!

You'll then just need to need to install Sublime text editor and you're ready to build Ruby applications!

If you follow those videos properly, you shouldn't have any problems, but if you do, post up here and I'll see if I can help.

I know how confusing it all is to begin with.

Ronnie Barua
Ronnie Barua
17,665 Points

I am watching Mac installation and when I typed in the command rbenv it says command not found.

Did you do:

git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
Ronnie Barua
Ronnie Barua
17,665 Points

I have done all those 3 above than when I typed in rbenv just didn't work. Thanks for your help

have you tried

rbenv install 2.0.0-p353

?

Try closing down your console, opening a new console, and try again

Ronnie Barua
Ronnie Barua
17,665 Points

I am also in bash 80 x 24, any idea? anything I can do to have a clean prompt?

Ronnie Barua
Ronnie Barua
17,665 Points

How do I close the whole Terminal?

Hmm, I'm not a MAC user, but when I said 'console', I meant Terminal. I think it's just a simple case of closing it like you would any other window.

You have to do this before you can run rbenv install 2.0.0~p353

The 'rbenv' command will then be "in your PATH", which means that the system will recognise 'rbenv' when you type it and it will actually do something.

Ronnie Barua
Ronnie Barua
17,665 Points

Yeah today is first day with Mac. Every time I close it and than open it's always the same.

If you're SURE it's still not working after restarting your terminal, I would follow the instructions here: https://github.com/sstephenson/rbenv for installing using 'homebrew'.

The steps are really simple. In your console:

brew update

then:

brew install rbenv ruby-build

then:

echo 'eval "$(rbenv init -)"' >> ~/.bash_profile

then you still need to restart your terminal and run:

type rbenv

Hell, if you can't work out how to restart your Terminal, just restart your Mac and then run "type rbenv" in your terminal!

Gotta go, good luck!

Ronnie Barua
Ronnie Barua
17,665 Points

Well, I'll see what I can do in the morning. Thanks for all your help.