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 trialRonnie Barua
17,665 PointsHaving 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
Andrew Stelmach
12,583 PointsJust follow the instructions in the beginner Ruby tutorials.
Ronnie Barua
17,665 PointsThanks! Is it at treehouse or online?
Andrew Stelmach
12,583 PointsThis should set you straight: http://teamtreehouse.com/library/installing-a-ruby-development-environment
Andrew Stelmach
12,583 PointsJust 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
17,665 PointsI am watching Mac installation and when I typed in the command rbenv it says command not found.
Andrew Stelmach
12,583 PointsDid 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
17,665 PointsI have done all those 3 above than when I typed in rbenv just didn't work. Thanks for your help
Andrew Stelmach
12,583 Pointshave you tried
rbenv install 2.0.0-p353
?
Ronnie Barua
17,665 PointsCommand not found
Andrew Stelmach
12,583 PointsTry closing down your console, opening a new console, and try again
Ronnie Barua
17,665 PointsI am also in bash 80 x 24, any idea? anything I can do to have a clean prompt?
Ronnie Barua
17,665 PointsHow do I close the whole Terminal?
Andrew Stelmach
12,583 PointsHmm, 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.
Andrew Stelmach
12,583 PointsYou have to do this before you can run rbenv install 2.0.0~p353
Andrew Stelmach
12,583 PointsThe '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
17,665 PointsYeah today is first day with Mac. Every time I close it and than open it's always the same.
Andrew Stelmach
12,583 PointsIf 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
17,665 Pointscommand not found
Ronnie Barua
17,665 PointsWell, I'll see what I can do in the morning. Thanks for all your help.