Home > IT & Software > e Text Editor: “ruby: no such file to load — ubygems (LoadError)”

e Text Editor: “ruby: no such file to load — ubygems (LoadError)”

i’ve installed e text editor on my desktop and trying it out for some Ruby development.

E is heavily dependent on using Ruby in the background to perform a number of its refactoring and text-based actions. Unfortunately, sometimes you can end up in a situation where E reports the following error whenever you trigger one of these actions:

ruby: no such file to load — ubygems (LoadError)

It looks obvious that the error is caused because E is trying to load the gem ubygems when it actually meant rubygems, but the problem is more involved than just that.

In my case, it turns out that after running the Ruby one-click installer, the installation creates an system-level environment variable RUBYOPT=-rubygems. This variable setting is what’s giving E its grief.

To fix: Simply remove the environment variable from your system settings and restart e for safe measure. In my experience, there’s no need to download the rubygem package and re-install it as mentioned on another site.

Bookmark this post:
  • DotNetKicks
  • DZone
  • TwitThis
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • Live
  • MySpace
  • Slashdot
  • StumbleUpon
  • Technorati

Related posts:

  1. Opening a file in your favourite editor from the command line This post serves as a reminder for myself. I use...
  2. Ruby and .NET for the uninitiated Coming with no experience in both Ruby or IronRuby, this...
  3. Viewing a File’s History in Git To view the full history of a file in your...
  4. Poor-man’s Benchmarking in Ruby As part of evaluating several libraries for specification testing in...
  5. Specification Testing in .NET using Ruby Not long ago, I posted a big fat blat of...

Xerxes IT & Software , ,

  1. May 27th, 2009 at 23:21 | #1

    You might want to try RubyMine from the R# guys or IronSteel that uses the VS Shell

  2. May 28th, 2009 at 07:58 | #2

    @Miguel Madero I’ve actually used both and was not happy with either.

    I found RubyMine quite slow performance wise (even after 1.0 release), and the very few refactorings available didn’t really make it seem like a worthwhile product for what we’re doing (using IronRuby for testing our .NET libraries).

    Ruby in Steel was cute in that it integrated itself with the VS IDE, but apart from syntax highlighting and providing an inline REPL, it didn’t offer anything spectacular.

    I guess i’m just spoiled by VS+R#. If either product get up to that level of quality i’d like to re-evaluate, but until then a simple text-editor is lightweight enough – and E has a form of intellisense which makes it quite neat over (say) Notepad ;)

  3. July 30th, 2009 at 05:36 | #3

    Fixed worked great for me. thanks!

  1. No trackbacks yet.