[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

gem 1.3.0, netbeans 6.1 "Missing the Rails gem"

Pablo Q.

10/8/2008 6:26:00 PM

[Note: parts of this message were removed to make it a legal post.]

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/2924249... it
looks fine....

Any idea?

--
Pablo Q.

4 Answers

James Britt

10/8/2008 6:49:00 PM

0

Pablo Q. wrote:

Eric Hodel

10/8/2008 10:54:00 PM

0


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/2924249... it
> looks fine....

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

Prashant Srinivasan

10/9/2008 3:24:00 AM

0

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-...

hth
-ps

Pablo Q. wrote:
> 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/2924249... it
> looks fine....
>
> Any idea?
>
>


--
Prashant Srinivasan
F/OSS Enthusiast
Sun Microsystems, Inc.
http://blogs.sun.co...
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=...


Prashant Srinivasan

10/9/2008 4:12:00 AM

0

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 Hodel's suggestion don't help.

-ps

Prashant Srinivasan wrote:
> 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-...
>
> hth
> -ps
>
> Pablo Q. wrote:
>> 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/2924249... it
>> looks fine....
>>
>> Any idea?
>>
>>
>
>


--
Prashant Srinivasan
F/OSS Enthusiast
Sun Microsystems, Inc.
http://blogs.sun.co...
GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=...