RadRails Error – No such file to load — rubygems (LoadError) 5

Posted by Jimmy'z on February 27, 2007

I’m using the Eclipse plug-in named RadRails to work on Rails projects. I’m running on Mac OS X, and I finally got past this error that would come up every time I tried to generate a Model, Controller, or anything for that matter:

No such file to load -- rubygems (LoadError)

Strange thing is, generating models, controllers, and such worked just fine from my bash shell, but not from within Eclipse. I thought it was something to do with my system PATH variable, but that was not the case.

The way to fix this error is to add ruby to your list of interpreters in:

Window => Preferences => Ruby => Installed Interpreters

Add an interpreter, name it Ruby, and give it the path to your ruby binary file. To find where that is located, just type which ruby from your shell prompt.

I hope this helps someone else. It took me a long time to find a solution for this.

Trackbacks

Use this link to trackback from your own site.

Comments

You must be logged in to leave a response.

  1. Ben Robison Tue, 27 Feb 2007 21:11:21 MST

    Once you get up and running with TextMate you won’t have this problem anymore =)

  2. Dilan Mon, 02 Apr 2007 23:40:29 MDT

    Thanks! Think you saved me a lot of time.

  3. [...] to Jimmy’z blog entry for pointing me in the right [...]

  4. tim Tue, 11 Mar 2008 14:50:22 MDT

    I have the same issue as above. Except I have no idea what WINDOW means. windows –> pref ? where is that.

  5. Jimmy'z Tue, 11 Mar 2008 20:25:55 MDT

    Window refers to the Window Menu up at the top of Eclipse (same bar as File, Edit, View, etc.)