Bug #7509

Error installing gem on clean system

Added by vo.x (Vit Ondruch) about 8 years ago. Updated about 8 years ago.

Target version:
ruby -v:
ruby 2.0.0dev (2012-12-04 trunk 38184) [x86_64-linux]


I just built and installed fresh Ruby on clean system and I observe following error:

# gem install rdoc
ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - /builddir/.gem/specs/

Creating the directory:

# mkdir /builddir/.gem/specs/

Solves the issue for me, but I would expect RubyGems to create it if needed anyway.


Updated by drbrain (Eric Hodel) about 8 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r38229.
Vit, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.

  • lib/rubygems/package.rb: Set rubygems_version before validation. Fixes issue with bundler.
  • test/rubygems/test_gem_package.rb: Test for above.

  • lib/rubygems/remote_fetcher.rb: Only update the cache when we have
    permission. [ruby-trunk - Bug #7509]

  • lib/rubygems/source.rb (class Gem): ditto

  • test/rubygems/test_gem_remote_fetcher.rb: Test for above.

  • lib/rubygems/test_utilities.rb: ditto

  • lib/rubygems/specification.rb: Derive base_dir properly for default
    gems. [ruby-trunk - Bug #7496]

  • test/rubygems/test_gem_specification.rb: Test for above.

  • lib/rubygems.rb: Untaint Dir.pwd when searching for gemdeps files
    for operation under $SAFE=1

Also available in: Atom PDF