...
svn co http://rubygems.rubyforge.org/svn/trunk downloads/rubygems
...
Checked out revision 2528.
cd -
mkdir -p sandbox/rubygems
cp -r --remove-destination downloads/rubygems C:/Users/Jon/Documents/RubyDev/ri-test/sandbox
cd sandbox/rubygems
ruby setup.rb install --no-ri --no-rdoc
C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module
(NoMethodError)
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:58:in `from_installed_gems'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:883:in `source_index'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:81:in `init_gemspecs'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/gem_path_searcher.rb:13:in `initialize'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:841:in `new'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:841:in `block in searcher'
from <internal:prelude>:10:in `synchronize'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:840:in `searcher'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:479:in `find_files'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:983:in `load_plugins'
from C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems.rb:1139:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from setup.rb:24:in `<main>'
rake aborted!
Command failed with status (1): [ruby setup.rb install --no-ri --no-rdoc...]
[C:\Users\Jon\Documents\RubyDev\ri-test]gem env
RubyGems Environment:
- RUBYGEMS VERSION: 1.3.7
- RUBY VERSION: 1.8.7 (2010-06-23 patchlevel 299) [i386-mingw32]
- INSTALLATION DIRECTORY: C:/ruby187/lib/ruby/gems/1.8
- RUBY EXECUTABLE: C:/ruby187/bin/ruby.exe
- EXECUTABLE DIRECTORY: C:/ruby187/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86-mingw32
- GEM PATHS:
- C:/ruby187/lib/ruby/gems/1.8
- C:/Users/Jon/.gem/ruby/1.8
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://rubygems.org", "http://gemcutter.org"]
- "gem" => "--no-ri --no-rdoc"
- REMOTE SOURCES:
- http://rubygems.org
- http://gemcutter.org
RubyGems development has moved to GitHub, so the recipe will need to
be updated, as I believe it contains some fixes for these issues.
--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry
I assume you meant building 1.9.3?
> C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module
This may have been caused by a (now fixed) bug in gem_prelude on
trunk. Does it still occur?
I get the same failure
C:/Users/Jon/Documents/RubyDev/ri-test/sandbox/rubygems/lib/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
after making this quickie patch to use the RubyGems GitHub repo
Turning warnings on I can see this:
<internal:lib/rubygems/custom_require>:29: warning: loading in
progress, circular require considered harmful -
C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/rubygems/lib/rubygems.rb
from setup.rb:24:in `<main>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from C:/Users/Luis/Projects/oss/oci/rubyinstaller/sandbox/rubygems/lib/rubygems.rb:1113:in
`<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:32:in `rescue in require'
from <internal:gem_prelude>:217:in `try_activate'
from <internal:gem_prelude>:167:in `load_full_rubygems_library'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
Even with 1.3.7
Going to ask this at RubyGems devel and ruby-core too.
Try adding the following to rubygems configure_options
--disable-gems
still fail with http://gist.github.com/486619
ruby setup.rb install --no-ri --no-rdoc --disable-gems
Apologizes, forgot to include my patch:
You need to turn gem_prelude off using --disable-rubygems *before* the setup.rb
Since RubyGems has been part of Ruby 1.9.x series it will not affect
1.8 installation.
Feel free to commit the changes.
*** Good News ***
applying http://gist.github.com/486619 allowed building with "rake ruby19 checkout=1 trunk=1"
[C:\Users\Jon\Documents\RubyDev]ruby --version
ruby 1.9.3dev (2010-07-23 trunk 28731) [i386-mingw32]
*** Bad News ***
[C:\Users\Jon\Documents\RubyDev]gem env
C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:68:in `installed_spec_directories': undefined method `path' for Gem:Module (NoMethodError)
from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems/source_index.rb:58
:in `from_installed_gems'
from C:/ruby19trunk/lib/ruby/site_ruby/1.9.1/rubygems.rb:883:in `source_index'
...
Would you still like me to push http://gist.github.com/486619 to master? The only change I made from yours was for style on line 40 (sh "git checkout master && git pull" rather than two separate sh calls)
Jon
We should bring this to Ruby-Core and RubyGems, as this is going to be
a huge problem.
Can you do that?
We could probably remove the gem prelude...
Forget about it, seems someone already did:
http://redmine.ruby-lang.org/issues/show/3607
We can follow up with our frustrations.
Just saw it. I'll add a note...