# Gem 1.3.0, netbeans 6.1 "Missing the Rails gem"

**URL:** <https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462>\
**Category:** Rails\
**Created:** [October 8, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462 "2008-10-08T21:47:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [October 8, 2008, 9:47pm UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462/1 "2008-10-08T21:47:27Z")

</div>

I’m on ubuntu 8.04 and I’m using netbeans 6.1 with native ruby option.

root@castor-laptop:/home/castor# gem --version  
1.3.0  
root@castor-laptop:/home/castor# ruby --version  
ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]

I’m able to run scripts/console from command:

root@castor-laptop:/home/castor/projects/Aflus# script/console  
Loading development environment (Rails 2.1.1)

> >

but when I try to run the same from netbeans rails console I get this:

Missing the Rails gem. Please `gem install -v= rails`, update your  
RAILS\_GEM\_VERSION setting in config/environment.rb for the Rails version  
you do have installed, or comment out RAILS\_GEM\_VERSION to use the  
latest version installed.

I checked the configuration of the ruby platform and it looks fine…

Any idea?

–  
Pablo Q.

---

<div class="post-metadata">

**Author:** ![pabloq](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ec9cab/32.png) [@pabloq](https://www.ruby-forum.com/u/pabloq)\
**Post date:** [October 9, 2008, 3:20am UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150462/2 "2008-10-09T03:20:19Z")

</div>

Pablo,

I’ve noticed a similar problem with 6.5M and 6.5Beta. My problem  
turned out to be a NetBeans call to Rake that was failing. I’ve filed  
with Sun-NetBeansDev, issue 149201.

My problem was in NetBeans source ruby2/rake\_tasks\_info.rb. On line 9  
of that file is a call to “do\_option” method on rake. This method  
appears to exist in rake v0.7.? but not in v0.8.? and rake v0.8.3 is  
the one that’s currently shipping.

I just commented out line 9 in the NB file and all (appears to) work  
fine.

You might want to turn on your IDE logging and check that you’re  
having the same (rake failure) problem as without the log the info  
reported leads you to believe you have a different (bigger) problem.

Rick

On Oct 8, 9:47 am, “Pablo Q.” [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
