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 Mac

Erin Lowell
Erin Lowell
4,201 Points

Can't install Rails on 10.9

I'm really surprised how unclear the directions are for installing rails on 10.9.

I created a git hub account, but I had a hard time finding rbenv as outlined in the video. Eventually I took a shot and copied the URL from the video but that failed in terminal as well.

There must be, somewhere, clear step by step instructions for installing ruby on 10.9. I've been at this an hour. I really want to work through this treehouse project, but I can't even get out of the gate.

Can anyone help?

Erin Lowell
Erin Lowell
4,201 Points

Ok, I actually made some progress and got rails installed. Now I'm being asked to install the Treehouse virtual machine and went through the steps and got this:

Vagrant cannot forward the specified ports on this VM, since they would collide with some other application that is already listening on these ports. The forwarded port to 3000 is already in use on the host machine.

To fix this, modify your current projects Vagrantfile to use another port. Example, where '1234' would be replaced by a unique host port:

config.vm.network :forwarded_port, guest: 3000, host: 1234

Sometimes, Vagrant will attempt to auto-correct this for you. In this case, Vagrant was unable to. This is usually because the guest machine is in a state which doesn't allow modifying port forwarding.

I know 3000 is where rails is installed, because I see it when I go to localhost:3000.

It seems it wants me to choose another port, but I'm not sure how to do that.

Thanks for any help.

1 Answer

J Scott Erickson
J Scott Erickson
11,883 Points

On OSX 10.9? So here is the deal. I know they use rbenv here, I use rvm ( ruby version manager ) for getting a specific ruby version on my machine.

As a side note, Apple's OS has a system install of ruby included. Check it out if you want, go to your terminal and type "which ruby"