Rails requires RubyGems

Hi,

When i open the rails application by netbeans i got the error as below,

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

I have the ruby version "ruby 1.8.7 (2009-04-08 patchlevel 160)
[i686-linux]"

And the below list are gem list

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
fastercsv (1.5.0)
linecache (0.43)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
ruby-debug-base (0.10.2)
ruby-debug-ide (0.3.1)
rubygems-update (1.3.5)

How can i fix the error. Did i miss anything?.

Thanks,
Periyasamy

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

Its all there for you

sudo gem update --system

Rob Lacey wrote:

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

Its all there for you

sudo gem update --system

[i686-linux]"
rack (1.0.1)
--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

--
Rob Lacey
contact@robl.me
http://www.robl.me

Hi Rob Lacey,

Thanks for your quick response. I tried the command "sudo gem update
--system" and also the gem version 1.3.5 is updated successfully. But
the problem is still exists when open the netbeans it says the same
above error.

Anything elso to update?.

Thanks
Periyasamy.

try only “sudo gem update”
and reply if its not works

kannav rajeev wrote:

try only "sudo gem update"
and reply if its not works

>> [i686-linux]"
.
> http://www.robl.me

To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscribe@googlegroups.com>
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
Regards:
Rajeev sharma
+919813270707

Hi sharma,

Thanks for your response. I tried as you have mentioned 'sudo gem
update'. I got some gem update for rack and ruby-debug. Please find the
result below,

[root@localhost ~]# sudo gem update
Updating installed gems
Updating rack
Successfully installed rack-1.1.0
Updating ruby-debug-base
Building native extensions. This could take a while...
Successfully installed ruby-debug-base-0.10.3
Updating ruby-debug-ide
Building native extensions. This could take a while...
Successfully installed ruby-debug-ide-0.4.9
Gems updated: rack, ruby-debug-base, ruby-debug-ide
Installing ri documentation for rack-1.1.0...
Installing ri documentation for ruby-debug-base-0.10.3...
Installing ri documentation for ruby-debug-ide-0.4.9...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for ruby-debug-base-0.10.3...
Installing RDoc documentation for ruby-debug-ide-0.4.9...
[root@localhost ~]# gem -v
1.3.5

Here Eventhough i have updated gem version 1.3.5. But the problem exits.
Any other solution?

Thanks
Periyasamy.

goto http://rubyforge.org/frs/?group_id=126&release_id=37073
download ruby gem 1.3.1 unpack it in your application
then "gem install (which is unziiped full name) – local " thats it it looks like that
rails_app>sudo gem install (which is unziiped full name) – local
ok its over

Hi sharma,

Thanks for your response. I tried as you have mentioned 'sudo gem
update'. I got some gem update for rack and ruby-debug. Please find the
result below,

[root@localhost ~]# sudo gem update
Updating installed gems
Updating rack
Successfully installed rack-1.1.0
Updating ruby-debug-base
Building native extensions. This could take a while...
Successfully installed ruby-debug-base-0.10.3
Updating ruby-debug-ide
Building native extensions. This could take a while...
Successfully installed ruby-debug-ide-0.4.9
Gems updated: rack, ruby-debug-base, ruby-debug-ide
Installing ri documentation for rack-1.1.0...
Installing ri documentation for ruby-debug-base-0.10.3...
Installing ri documentation for ruby-debug-ide-0.4.9...
Installing RDoc documentation for rack-1.1.0...
Installing RDoc documentation for ruby-debug-base-0.10.3...
Installing RDoc documentation for ruby-debug-ide-0.4.9...
[root@localhost ~]# gem -v
1.3.5

Here Eventhough i have updated gem version 1.3.5. But the problem exits.
Any other solution?

Thanks
Periyasamy.

Hi,

Please find the screenshot for the same error.

Thanks
Periyasamy

Attachments:
http://www.ruby-forum.com/attachment/4410/error.png

kannav rajeev wrote:

goto http://rubyforge.org/frs/?group_id=126&release_id=37073
download ruby gem 1.3.1 unpack it in your application
then "gem install (which is unziiped full name) -- local " thats it it
looks
like that
rails_app>sudo gem install (which is unziiped full name) -- local
ok its over

>>
>
update'. I got some gem update for rack and ruby-debug. Please find the
Building native extensions. This could take a while...

"Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com<rubyonrails-talk%2Bunsubscribe@googlegroups.com>
.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.

--
Regards:
Rajeev sharma
+919813270707

Hi sharama,

I will try this ruby gem 1.3.1 unpack and reply you.

Thanks
-Periyasamy

sudo gem install rubygems-update -v 1.3.1

is tat work last one or not ?

kannav rajeev wrote:

is tat work last one or not ?

> looks
>> Building native extensions. This could take a while...
>> http://groups.google.com/group/rubyonrails-talk?hl=en.

You received this message because you are subscribed to the Google Groups

--
Regards:
Rajeev sharma
+919813270707

Hi Sharma,

Thanks for your support.

Now the problem is solved.I chosen the ruby platform "ruby 1.8.7-p160"
in the configuration of the project. Its solved.

Thanks,
Periyasamy.