7/26/2008

Location of the Ruby SDK and IntelliJ on Mac

I've been getting back into Rails development again, and I've been trying to find the right IDE to work in. I'm an IntelliJ fan, and I hate Eclipse. But, last time I was using Rails I used RadRails, and it was ok. However, now IntelliJ 7 has support for Rails development, and I thought I'd try it out.

First thing I ran into when I was configuring my project is setting up the Ruby SDK. Much like a Java project needs to know where the JDK home directory lives Ruby projects need to know where Ruby SDK lives. Only problem is on a Mac or Linux box those aren't so simple to find. I also had rebuilt Ruby so I could get readline support and installed it under /usr/local.

I tried /usr/local/lib/ruby that didn't work. I tried /usr/local/lib/ruby/1.8 that didn't work. Finally after stumbling around without any success I tried /usr/local and viola it worked.

If you didn't rebuild Ruby and are using the default Mac install. It would be /usr. Make sense? No not at all, but hopefully this blog post will help some peeps in the future.

3 comments:

Beaumont Muni said...

So have you come up with a verdict on ruby/rails plugin for intelliJ. I am also trying to decide what to use. I am a great fan of IntelliJ and currenly use intelliJ 7. I would be interested to know what you think.

chubbsondubs said...

As I promised I posted my review of the IntelliJ Rails plugin. Check it out here

Ryan said...

I was having problems locating the Ruby SDK too.

I figured out the "which ruby" command will tell you.