Unable to update gems

I am trying to update the rails using gems update, and I am getting the
following error:

Updating installed gems
GET 304 Not Modified: http://gems.rubyforge.org/latest_specs.4.8.gz
Updating actionmailer
GET 304 Not Modified: http://gems.rubyforge.org/specs.4.8.gz
Installing gem activesupport-2.2.2
ERROR: While executing gem … (RangeError)
integer 2953686243 too big to convert to `int’

Appreciate any help.

Thanks.

On Mar 10, 2009, at 11:15 , Eswar Vandanapu wrote:

integer 2953686243 too big to convert to `int’
rerun with --backtrace

Ryan D. wrote:

On Mar 10, 2009, at 11:15 , Eswar Vandanapu wrote:

integer 2953686243 too big to convert to `int’
rerun with --backtrace

gem env would be good, too.

On Mar 10, 2009, at 16:12, Eswar Vandanapu wrote:

Updating actionmailer
ERROR: While executing gem … (RangeError)
integer 2953686243 too big to convert to int' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/ tar_reader/entry.rb:83:inread’

gem update -V --backtrace please, this error is very strange, it seems
you have a nearly 3GB tar file for actionmailer…

On Mar 10, 2009, at 16:38 , Eric H. wrote:

Updating installed gems
Updating actionmailer
ERROR: While executing gem … (RangeError)
integer 2953686243 too big to convert to int' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/ tar_reader/entry.rb:83:inread’

gem update -V --backtrace please, this error is very strange, it
seems you have a nearly 3GB tar file for actionmailer…

I think this is very possibly a problem with jruby… Can you test
with MRI?

Obviously, updating actionmailer isn’t a problem in normal cases, so
some edge case is messing stuff up. Either remove netbeans or remove
jruby from the equation and try again.

Roger P. wrote:

Ryan D. wrote:

On Mar 10, 2009, at 11:15 , Eswar Vandanapu wrote:

integer 2953686243 too big to convert to `int’
rerun with --backtrace

gem env would be good, too.

C:\Program Files\NetBeans 6.7 M2\ruby2\jruby-1.1.4\bin>gem update
–backtrace
Updating installed gems
Updating actionmailer
ERROR: While executing gem … (RangeError)
integer 2953686243 too big to convert to int' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader/entry.rb:83:inread’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:75:in
from_io' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:46:ineach’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:37:in
loop' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:37:ineach’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:127:in
each' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:20:innew’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:126:in
each' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:46:ineach’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:37:in
loop' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb:37:ineach’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:121:in
each' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:71:infrom_io’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb:20:in
open' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/package.rb:56:inopen’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:67:in
from_io' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:51:infrom_file_by_path’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:50:in
open' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/format.rb:50:infrom_file_by_path’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/installer.rb:114:in
initialize' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:236:ininstall’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:219:in
each' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb:219:ininstall’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:85:in
execute' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:81:ineach’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb:81:in
execute' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/command.rb:136:ininvoke’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:105:in
process_args' C:/Program Files/NetBeans 6.7 M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:75:inrun’
C:/Program Files/NetBeans 6.7
M2/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:39:in
`run’
C:\Program Files\NetBeans 6.7 M2\ruby2\jruby-1.1.4\bin\gem:24

C:\Program Files\NetBeans 6.7 M2\ruby2\jruby-1.1.4\bin>

C:\Program Files\NetBeans 6.7 M2\ruby2\jruby-1.1.4\bin>gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.3.1
  • RUBY VERSION: 1.8.6 (2008-08-28 patchlevel 114) [java]
  • INSTALLATION DIRECTORY: C:/Program Files/NetBeans 6.7
    M2/ruby2/jruby-1.1.4/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: C:/Program Files/NetBeans 6.7
    M2/ruby2/jruby-1.1.4/bin/jruby.bat
  • EXECUTABLE DIRECTORY: C:/Program Files/NetBeans 6.7
    M2/ruby2/jruby-1.1.4/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • universal-java-1.6
  • GEM PATHS:
    • C:/Program Files/NetBeans 6.7
      M2/ruby2/jruby-1.1.4/lib/ruby/gems/1.8
    • C:/Documents and Settings/evandana.ST-USERS/.gem/jruby/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
    • “install” => “–env-shebang”
    • “update” => “–env-shebang”
  • REMOTE SOURCES:

C:\Program Files\NetBeans 6.7 M2\ruby2\jruby-1.1.4\bin>

I think this is very possibly a problem with jruby… Can you test
with MRI?

Obviously, updating actionmailer isn’t a problem in normal cases, so
some edge case is messing stuff up. Either remove netbeans or remove
jruby from the equation and try again.

I ran with -V, there is no additional output on console. I want to use
JRuby because I am looking for Quartz and other java library
integration.

Will try MRI nevertheless.

Thanks,
Eswar Vandanapu

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs