FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0).

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
babiben



Joined: 07 Apr 2009
Posts: 7

PostPosted: Fri Apr 17, 2009 3:47 pm    Post subject: netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0). Reply with quote

Hello, i have a problem with rails and netbeans 6.5.1. When starting my application, I obtains an error :

"Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update
--system` and try again."

I tried to apply this method http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems but without success!

How can i obtain a console in netbeans to execute the next commande : gem update --system ? There is a probleme with ruby and jruby... In Netbeans, i use JRuby 1.1.4 and when i execute the command, it run for ruby!

Do you have a solution ?
Thanks a lot
Bye
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Fri Apr 17, 2009 4:00 pm    Post subject: netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0). Reply with quote

Hi,

babiben wrote:
Quote:
Hello, i have a problem with rails and netbeans 6.5.1. When starting my application, I obtains an error :



"Rails requires RubyGems >= 1.3.1 (you have 1.2.0). Please `gem update

--system` and try again."



I tried to apply this method http://blogs.sun.com/divas/entry/fixing_the_rails_requires_rubygems but without success!



How can i obtain a console in netbeans to execute the next commande : gem update --system ? There is a probleme with ruby and jruby... In Netbeans, i use JRuby 1.1.4 and when i execute the command, it run for ruby!


There is a typo in the blog entry, for JRuby you need to run 'jruby -S
...' instead of 'ruby -S ...'. So you need to run

<netbeans-install-dir>/ruby2/jruby-1.1.4/bin/jruby -S gem install
rubygems-update

and then

<netbeans-install-dir>/ruby2/jruby-1.1.4/bin/jruby -S update_rubygems


Or you might just update JRuby to 1.2.0 -- see
http://blogs.sun.com/divas/entry/installing_your_own_jruby_to for
instructions. Let us know if that doesn't help,

Erno
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Mon Apr 20, 2009 12:52 pm    Post subject: netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0). Reply with quote

No idea, unfortunately. I would encourage you to upgrade JRuby to 1.2.0,
so you don't have to solve the problem with RubyGems and 1.1.4 is really
a bit dated by now. Maybe I posted this link already, but here is it
again anyway:

http://blogs.sun.com/divas/entry/installing_your_own_jruby_to

Cheers,
Erno


babiben wrote:
Quote:
I have an other probleme :




Code:
sessiont@aztek:~/netbeans/netbeans-6.5.1/ruby2/jruby-1.1.4/bin$ jruby -S update_rubygems

Installing RubyGems 1.3.2

Inconsistency detected by ld.so: dl-open.c: 623: _dl_open: Assertion `_dl_debug_initialize (0, args.nsid)->r_state == RT_CONSISTENT' failed!













Back to top
lothia



Joined: 11 May 2009
Posts: 2

PostPosted: Mon May 11, 2009 11:22 pm    Post subject: Reply with quote

I apologize for bumping a 12 day old topic. However I am having major problems wit this. For some reason unknown to me I cannot add the path for jruby to work correctly. I have installed 3 versions of jruby, however my path for system has one which is
"C:\Program Files\NetBeans 6.5.1\ruby2\jruby-1.2.0\bin"
When ever I go into cmd and type jruby or jruby -S gem or anything I get
"The System cannot find the specified path". I do not know what is wrong, I have added multiple paths before and I have done all of the steps required to update it with doing the ruby -S command instead (which posted above is incorrect) however I cannot do the jruby command no matter what.
Any help would be greatly appreciated.
Back to top
View user's profile Send private message
Erno Mononen
Posted via mailing list.





PostPosted: Tue May 12, 2009 9:59 am    Post subject: netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0). Reply with quote

Hi,

lothia wrote:
Quote:
I apologize for bumping a 12 day old topic. However I am having major problems wit this. For some reason unknown to me I cannot add the path for jruby to work correctly. I have installed 3 versions of jruby, however my path for system has one which is

"C:\Program Files\NetBeans 6.5.1\ruby2\jruby-1.2.0\bin"


Did you specify the path with quotes as in above? If you didn't, I'm
thinking that the space in the path may cause some problems, but I'm not
on Windows now to check it. Can you try installing JRuby to a different
path w/o spaces?


Erno


Quote:
When ever I go into cmd and type jruby or jruby -S gem or anything I get

"The System cannot find the specified path". I do not know what is wrong, I have added multiple paths before and I have done all of the steps required to update it with doing the ruby -S command instead (which posted above is incorrect) however I cannot do the jruby command no matter what.

Any help would be greatly appreciated.











Back to top
sacrolicious



Joined: 08 Oct 2009
Posts: 1

PostPosted: Mon Oct 19, 2009 11:15 am    Post subject: Re: netbeans 6.5.1 : RubyGems >= 1.3.1 (you have 1.2.0). Reply with quote

Erno Mononen wrote:
Hi,

lothia wrote:
Quote:
I apologize for bumping a 12 day old topic. However I am having major problems wit this. For some reason unknown to me I cannot add the path for jruby to work correctly. I have installed 3 versions of jruby, however my path for system has one which is

"C:\Program Files\NetBeans 6.5.1\ruby2\jruby-1.2.0\bin"


Did you specify the path with quotes as in above? If you didn't, I'm
thinking that the space in the path may cause some problems, but I'm not
on Windows now to check it. Can you try installing JRuby to a different
path w/o spaces?


Erno


Quote:
When ever I go into cmd and type jruby or jruby -S gem or anything I get

"The System cannot find the specified path". I do not know what is wrong, I have added multiple paths before and I have done all of the steps required to update it with doing the ruby -S command instead (which posted above is incorrect) however I cannot do the jruby command no matter what.

Any help would be greatly appreciated.













I'm having the same problem, Did removing the spaces from the installation path work?

_________________
Simon O'Gorman
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB