Development Tools Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

Just bought a MacBookPro11,4

So I'm following along with the videos on how to set up a Ruby Development Environment on my new Mac and nothing is going right. I'm guessing the videos are outdated? Can someone walk me through the process so I can keep learning? Thanks in advance.

jason chan
jason chan
31,001 Points

I hope that helps. RUBY on rails is a lot of command lines to just make an app work.

Matthew Bingham
Matthew Bingham
11,927 Points

The problem with video learning software development is that it's an ever evolving process. It's difficult to keep videos updated with relevant contact (I had a similar issue recently with the laravel course).

On the plus side, it's an opportunity to explore the web for active communities - which you'll do anyway if you are really willing to learn.

Unfortunately I don't have a Mac so can't help you out, but a quick search brings up an excellent guide that may help you:

Good luck!

Thanks for the links guys, but I'm still struggling to get it going.

In the tutorial Matthew provided, I managed to get Ruby 2.2.2 installed to /Users/home/.rbenv/versions/2.2.2

Then I typed- rbenv global 2.2.2

Then- ruby -v

And it still tells me I have Ruby 2.0.0

1 Answer

Charles Smith
Charles Smith
7,575 Points

Installing a new dev environment is always a bit frustrating. I have had a lot of luck with RVM. Once you have RVM installed, you can do a

rvm list known

which will show you which ruby versions are available. Then you can do something like:

rvm use 2.1

Then you should get output from

ruby -v

If so, from there you can just

gem install rails

and head off. however, I've never done an install that was frustration-free, even with RVM. I would plan to get some errors and end up googling. If you're in a pinch, there is the treehouseVM, which they have a video for how to get up and running with Vagrant.