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

Ruby

Terica Douglas
Terica Douglas
4,552 Points

Installing RVM and Rails WinSubsystemLinux - ruby 1.9.3 is installed. The rails install goes to this -v. HELP

I can't see the RVM or the ruby 2.4.2 I thought I installed.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Please expand on this. What is your operating system? What are you trying to accomplish and what were the steps you performed?

Terica Douglas
Terica Douglas
4,552 Points

Apologies; I didn't realize there was a header.

I use Win10 bash. Official name WSL.

1) Only opens ruby -v 1.9.3 (Treehouse Rails dev requires ruby 2.2.x.) 2) In following D/L instructions, I have no idea where the RVM was installed to. no rvm. not in var or bin; nor in root or home

my shell home is /bin/bash

Net net: need directions to config the WSL bash open the needed version of ruby.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

The only thing I can recommend is not to use Windows for any kind of Ruby or Rails development. I know it now has bash and all the Linux-compatible stuff in theory, but in practice there will not be too much support online to help you troubleshoot such situations, since developers rarely (if ever) use Windows for Ruby/Rails. Consider using a Linux virtual machine or service such as Cloud9.

1 Answer

Brandon McClelland
Brandon McClelland
4,645 Points

You need to change which ruby is the default for RVM like this:

rvm --default use 2.4.2

You can read more about changing the defaults here: https://rvm.io/rubies/default

Brandon McClelland
Brandon McClelland
4,645 Points

I second Maciej's comment about using a virtual machine; it can be a lot simpler than juggling multiple system version installs to simply create a new VM with only the target version installed. Checkout Vagrant if you haven't already.

Terica Douglas
Terica Douglas
4,552 Points

Thank you. Since this was on the RVM page of instructions, I did flag for a new default, and passed in 2.4.2.

Terica Douglas
Terica Douglas
4,552 Points

Right now using PS and Docker; probably will go with an Alpine based RoR image. I will report as I go through this course