Issue #4941 has been updated by Lazaridis Ilias.



Nobuyoshi Nakada wrote:
> Hi,
>  
>  At Sat, 2 Jul 2011 15:38:57 +0900,
>  Lazaridis Ilias wrote in [ruby-core:37731]:
>  > * Status compiled : interpreter works as-is within the source-tree
>  
>  $ make runruby TESTSCRIPT=script_whatever_you_want_to_run

"Make" is a build/make tool.

"ruby" is a dynamic interpreted language, far more powerful than a make tool. ruby should be able to operate autonomously as soon as possible.

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

-

Mr. Nakada,

you have deleted the "ruby -v" in this issue:

"ruby -v changed from ruby 1.9.3dev (2011-06-28 trunk 32265) [i386-mswin32_90] to -"

This issue was introduced by r30538 in the current trunk (ruby 1.9.3dev):

http://redmine.ruby-lang.org/projects/ruby-19/repository/revisions/30538/diff

Even if you do not accept this issue as a bug, the "ruby -v" I reported is correct (I cannot restore it myself, can you please do so?).


----------------------------------------
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'"

 <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