Issue #4941 has been updated by Lazaridis Ilias.

File gem_prelude.diff added

rubygems should *not* block ruby from running.

The attached WORKAROUND(!) patch "gem_prelude.diff" removes the blocking behaviour of rubygems, thus the interpreter works (as in versions before) after the compilation from within the source-tree.

I hope the issue becomes a bit more clear now.


----------------------------------------
Bug #4941: cannot load such file -- rubygems.rb (LoadError)
http://redmine.ruby-lang.org/issues/4941

Author: Lazaridis Ilias
Status: Rejected
Priority: Normal
Assignee: Usaku NAKAMURA
Category: core
Target version: 
ruby -v: ruby 1.9.3dev (2011-06-28 trunk 32265) [i386-mswin32_90]


=begin

From within the directory of a fresh trunk checkout:

$ win32\configure
$ nmake
$ miniruby -e"p 'hello'" #=> hello
$ ruby -e"p 'hello'"

 <internal:gem_prelude>:1:in `require': cannot load such file -- rubygems.rb (LoadError)
        from <internal:gem_prelude>:1:in `<compiled>'

(the exact same procedure using branch 1.9.2 worked fine)
=end



-- 
http://redmine.ruby-lang.org