From: John Higgins Date: 2011-07-05T05:34:26+09:00 Subject: [ruby-core:37789] [Ruby 1.9 - Bug #4941] cannot load such file -- rubygems.rb (LoadError) Issue #4941 has been updated by John Higgins. > The new mechanism to load rubygems, introduced in 1.9.3dev, *disables* a "newborn" ruby, and this is to be rated as a "bug" (or at least: "unnecessary loss of flexibility"): > > $ ruby -e"p 'hello'" #=> *fails* with the error reported in this issue > > I will say it again - this is not a bug but a misconfiguration by yourself for your build. win32\configure --disable-rubygems nmake ruby -e"p 'hello'" Will work just fine for you. There is no reason for anything else to be done here. If you are not installing the build then you don't need rubygems because you won't have it setup anyways. ---------------------------------------- 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: - =begin From within the directory of a fresh trunk checkout: $ win32\configure $ nmake $ miniruby -e"p 'hello'" #=> hello $ ruby -e"p 'hello'" :1:in `require': cannot load such file -- rubygems.rb (LoadError) from :1:in `' (the exact same procedure using branch 1.9.2 worked fine) =end -- http://redmine.ruby-lang.org