Monday, January 7, 2008

Configuring Ruby SDK in IntelliJ

I have installed the Ruby Plugin into my current IntelliJ 7.02.

You have to specify a 'Ruby SDK' when creating a new Ruby project. For me it was not obvious what that meant... But you cannot run your Ruby scripts out of the IDE as long as you do not configure the 'Ruby SDK'.

After experimenting a bit I found out that you must point your 'Home Directory for Ruby SDK' to /usr. IntelliJ will then detect your Ruby installation.

I am running OS X Leopard with the default Ruby installation.

Picture 1.png


  1. Thank you so much for sharing your discovery!

  2. Yes. Thank you. After puzzling over the fact that

    which ruby

    wasn't a valid SDK (kinda. Idea didn't raise an error when I tried using that - just quietly acquiesced) I tried a dozen google searches to and didn't come up with anything.

    FYI: This is the search that got me here "ruby SDK os x".

    I also tried:
    intellij ruby invalid SDK os x
    invalid SDK os x

    and a few others. Hopefully droping those searches in your comments section will help someone else avoid a few searches.

  3. Thanks for the help


Related Posts Plugin for WordPress, Blogger...