# 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/150457>\
**Category:** Ruby\
**Created:** [October 8, 2008, 8:28pm UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457 "2008-10-08T20:28:49Z")\
**Posts on this page:** 5\
**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, 8:28pm UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457/1 "2008-10-08T20:28:49Z")

</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[http://www.flickr.com/photos/82684024@N00/2924249923](http://www.flickr.com/photos/82684024@N00/2924249923)and it  
looks fine…

Any idea?

---

<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, 8:51pm UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457/2 "2008-10-08T20:51:43Z")

</div>

Pablo Q. wrote:

.

> Any idea?

Have you asked on the Rails mailing list? You would likely get more,  
better help there.

---

<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, 12:56am UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457/3 "2008-10-09T00:56:56Z")

</div>

On Oct 8, 2008, at 11:26 AM, Pablo Q. wrote:

> 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 checked the configuration of the ruby  
> platform[http://www.flickr.com/photos/82684024@N00/2924249923](http://www.flickr.com/photos/82684024@N00/2924249923)and it  
> looks fine…

No it doesn’t. Check your version numbers again, and check `which gem`.

---

<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, 6:14am UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457/4 "2008-10-09T06:14:41Z")

</div>

Also, can you not only look at the Ruby platform (which the flickr  
picture showed), but to right click on your project and open the  
Properties dialog, and see/confirm that the project is using this  
platform? You can have multiple platforms available, and each project  
is assigned one of them (this is assigned when you create the project,  
there’s a combobox).

It sounds like you may be using JRuby instead of native ruby for this  
project.

In any case, it may be worth to post to the Netbeans Ruby users forum in  
case this or Eric H.'s suggestion don’t help.

-ps

---

<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, 5:26am UTC](https://www.ruby-forum.com/t/gem-1-3-0-netbeans-6-1-missing-the-rails-gem/150457/5 "2008-10-09T05:26:45Z")

</div>

Pablo, you might post to the Netbeans Ruby forum too, just in case this  
is Netbeans related. The URL is  
[http://forums.netbeans.org/ruby-users.html](http://forums.netbeans.org/ruby-users.html)

hth  
-ps
