09 Jun 2009, 03:08
Generic-user-small

Lube R. Lee (1 post)

I am deploying on a vps running Windows Server 2003

I am just at the 2nd step of installing rails and I got this error:

C:\>gem install rails—no-rdoc—no-ri
Bulk updating Gem source index for: http://gems.rubyforge.org
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:331:in `<<’: failed to a
llocate memory (NoMemoryError) from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:331:in `red
uce_specs’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:322:in `eac
h’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:322:in `red
uce_specs’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:274:in `con
vert_specs’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:297:in `fet
ch_bulk_index’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:254:in `upd
ate’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb:
26:in `refresh’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:111:in `refresh’ ... 12 levels… from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:121:in `
process_args’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb:92:in `r
un’ from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb:30:in `run’ from c:/ruby/bin/gem:23

Please help,

03 Aug 2010, 03:41
Bphogan_pragsmall

Brian P. Hogan (129 posts)

Hi! I can help with this. Older copies of Ruby will cause this problem.
Rubyinstaller.org has new, better, faster Ruby installers for Windows.

Here’s the 1.8.6 version: http://rubyforge.org/frs/download.php/71066/rub…

Install this to c:\ruby

For many gems that have native extensions, you’ll want to grab the Devkit.
http://rubyforge.org/frs/download.php/71102/rub…

You will need 7zip to open that archive… drag both folders within the archive to c:\ruby.

Then from the command prompt, do

gem update—system
gem install rails—no-ri—no-rdoc

You should be able to get much, much further.

I wrote that Windows chapter so long ago – very little has changed, surprisingly, but some of hte packages we reference there are kinda old and they (obviously) cause problems.

  You must be logged in to comment