[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

Unable to update gems

Eswar Vandanapu

3/10/2009 6:16:00 PM

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_sp...
Updating actionmailer
GET 304 Not Modified: http://gems.rubyforge.org/sp...
Installing gem activesupport-2.2.2
ERROR: While executing gem ... (RangeError)
integer 2953686243 too big to convert to `int'

Appreciate any help.

Thanks.
--
Posted via http://www.ruby-....

6 Answers

Ryan Davis

3/10/2009 8:23:00 PM

0


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

> 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_sp...
> Updating actionmailer
> GET 304 Not Modified: http://gems.rubyforge.org/sp...
> Installing gem activesupport-2.2.2
> ERROR: While executing gem ... (RangeError)
> integer 2953686243 too big to convert to `int'

rerun with --backtrace



Roger Pack

3/10/2009 8:32:00 PM

0

Ryan Davis 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.
--
Posted via http://www.ruby-....

Eswar Vandanapu

3/10/2009 11:13:00 PM

0

Roger Pack wrote:
> Ryan Davis 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:in
`read'
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: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: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:in
`each'
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:in
`new'
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: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: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:in
`each'
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:in
`from_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:in
`open'
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:in
`from_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:in
`from_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:in
`install'
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:in
`install'
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:in
`each'
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:in
`invoke'
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:in
`run'
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:
- http://gems.ruby...

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

--
Posted via http://www.ruby-....

Eric Hodel

3/10/2009 11:38:00 PM

0

On Mar 10, 2009, at 16:12, Eswar Vandanapu wrote:
> Roger Pack wrote:
>> Ryan Davis wrote:
>>> On Mar 10, 2009, at 11:15 , Eswar Vandanapu wrote:
>>>
>>>> integer 2953686243 too big to convert to `int'
>>> rerun with --backtrace
>
> 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:in
> `read'

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

Ryan Davis

3/11/2009 12:25:00 AM

0


On Mar 10, 2009, at 16:38 , Eric Hodel wrote:

> On Mar 10, 2009, at 16:12, Eswar Vandanapu wrote:
>> Roger Pack wrote:
>>> Ryan Davis wrote:
>>>> On Mar 10, 2009, at 11:15 , Eswar Vandanapu wrote:
>>>>
>>>>> integer 2953686243 too big to convert to `int'
>>>> rerun with --backtrace
>>
>> 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:in
>> `read'
>
> 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.


Eswar Vandanapu

3/11/2009 7:58:00 PM

0



>
> 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
--
Posted via http://www.ruby-....