RVM and Command Line Tools


I was wondering if anyone could guide me on how to configure Command Line Tools to use a specific version of Ruby (via RVM).  So for example, in Terminal on my Mac I have installed and configured RVM to use a specific version of Ruby by: rvm use 1.9.2, so now when I open a terminal window my system is configured to use this version which I can check via: ruby -v which displays 1.9.2.  This is achived by the following script https://github.com/wayneeseguin/rvm/blob/master/scripts/rvm

In IDEA if I fire up command line tools and type ruby -v it displays the old original system default ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]

How do I configure IDEA in the same manner?

Comment actions Permalink


You may create new framework with alias ruby and tool path $path_to_new_ruby_installation$. It should help.


Comment actions Permalink

Hi Elena,

Thanks for your swift reply, could you please digress on:

create new framework

This is something I am unfamiliar with in IDEA and have no idea where I would do this?


Comment actions Permalink

Ok ignore that, I have now dug around and discovered the doc link to what I think you meant:


And here is the final success:

<?xml version="1.0" encoding="UTF-8"?>
<framework xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="schemas/frameworkDescriptionVersion1.1.xsd" name="Ruby" invoke="/Users/newtriks/.rvm/rubies/ruby-1.9.2-p180/bin/ruby" alias="ruby" enabled="true" version="1">
  <help><![CDATA[Ruby version 1.9.2 rvm instance]]></help>

Message was edited by: Simon Bailey adding the resulting successful code

Please sign in to leave a comment.