Installing RVM on Windows 10

It’s no secret that it’s difficult to work with Ruby on Windows, but installing RVM (Ruby Version Manager) is a way to make it a bit easier.

First, you’ll have to install Cygwin, which basically sprinkles some Linux flavor on Windows.  I recommend following the directions outlined in this blog post, with a few additions:

While checking off which packages to install (there’s a whole list on that blog, I would recommend using the search feature within the Cygwin – but don’t hit enter! that will advance the installation), also install the following packages:

  • sqlite3
  • autoconf
  • automake
  • bison
  • m4
  • cygwin32-readline

Proceed as normal with the installation.  When you get to the kick-off script:

./osx_or_cygwin_kick_off

it will make a settings file for you. This is where the blog post kind of stops, so pick up the instructions of the rest of the installation below.

At this point, run the kickoff script again. This will actually initiate the script that will install RVM for you.

Next, exit and reopen the cygwin terminal.

Now, run the final script to finish off the RVM installation:

./osx_or_cygwin_finish

Once this script finishes running, you should be able to use any and all RVM commands available.  To see them all available, use the command

rvm

into the cygwin terminal, or go to https://rvm.io/ for more information.

To see what’s installed, use the command

rvm list known

and the terminal will show what rubies are available. If ruby versions have square brackets around them, they may not be installed, which means you have to tell rvm to install specific versions. Let’s say, for instance, you want to install ruby 1.9.3 on Windows for a code test you have to do.  So to do that enter

rvm install 1.9.3

The installation itself will take a little while, so be patient. After it’s finished, you’re ready to go!

Side Note: If you ever get an error, something like “Requirements installation failed with status: 127.” while you are setting up, it might be that you didn’t install all necessary packages while installing cygwin. To figure out what packages you need to go back and update, simply pay attention to the first few lines of the error. You’ll see a line that says something along the lines of ‘couldn’t find packages’. It’s pretty simple to go back and update the cygwin, by the way. Re-run the setup exe file that you used with the original cygwin install, and go through like you did originally (shouldn’t have to change anything). When you get to the package selection, select the ones you are missing and re-install as normal.  This should resolve the problem.

 

Action: My 2016 Resolution

Usually, I wait until February to make a New Years resolution. It’s just easier that way. Our sense of what we want or need is skewed by the holidays. After a month of spending and gorging and sloth, who wouldn’t want to save more, eat better, exercise? I give myself a month or so to cool off, collecting the ideas for resolutions I have in my head and abstracting them into a larger theme that I can follow all year. That boils down into just one word. For 2016, that word is “action.”

img_0320

It seems simple enough – when you want to do something, just do it. But in practice, it proves to be much more difficult.

Action: It means, don’t store it in your head for later, either do it or take the first manageable step in accomplishing the larger goal. Action: Don’t touch things twice. See an email? Got a text? Answer it. Don’t flag it and come back to it.

Action: Put down your phone when it’s not necessary to be on it and be active in conversation.

I’ve sat and thought about actions long enough. Do first, learn second. Mistakes are okay. Be better at recognizing the times where tasks need to be thought out vs acted upon.

Action: Write things down. Ideas and solutions are no good to you or anyone else buried in your head.

Action: Going to the doctor is scary. Making appointments is not. Take things one step at a time.

Action: Move more. Life isn’t a golf, the person who swings the least won’t always win. Take the long way to Chipotle once in a while.

The trash is full. The sink is full. Laundry needs to done. Don’t ruminate about what’s most efficient to do when, do the highest priority first, they all need to happen.

I use this one-word trick to stick to my New Years resolution. When something seems too insurmountable, when you’re too tired, when you think to yourself, “I’ll do it later,” say it out loud: action.

This resolution also applies in regards to code: do something everyday, even if it’s small. Take the initiative to expose yourself to new problems and new solutions. Code is a form of creativity. To push the boundaries of what you can do, you must continually have your perspectives challenged. Artists go to museums, exhibits, where do you go to get inspired?

Earlier thought: “I need to write that blog post about my New Years resolution”

Action: “I am currently done writing a blog post about my New Years resolution.”

What’s your word for 2016?