[Bug #1410] irb shows some messages on boot


#1

Bug #1410: irb shows some messages on boot
http://redmine.ruby-lang.org/issues/show/1410

e$B5/I<<Te(B: Nobuhiro IMAI
e$B%9%F!<%?%9e(B: Open, e$BM%@hEYe(B: Normal
ruby -v: ruby 1.9.2dev (2009-04-26 trunk 23293) [i686-linux]

irb e$B$r5/F0$9$k$H0J2<$N$h$&$J%a%C%;!<%8$,=P$k$h$&$G$9!#e(B

$ irb1.9
Error loading gem paths on load path in gem_prelude
no implicit conversion from nil to integer
internal:gem_prelude:320:in []=' <internal:gem_prelude>:320:inpush_all_highest_version_gems_on_load_path’
internal:gem_prelude:344:in `’

RUBY_DESCRIPTION
=> “ruby 1.9.2dev (2009-04-26 trunk 23293) [i686-linux]”


#2

e$B$J$+$@$G$9!#e(B

At Sun, 26 Apr 2009 21:08:48 +0900,
Nobuhiro IMAI wrote in [ruby-dev:38336]:

irb e$B$r5/F0$9$k$H0J2<$N$h$&$J%a%C%;!<%8$,=P$k$h$&$G$9!#e(B

irbe$B$@$1$G$9$+e(B?

Gem::ConfigMap[:sitelibdir] e$B$He(B $:
e$B$NCM$O$I$&$J$C$F$$$k$G$7$g$&$+!#e(B


#3

e$B$$$^$$$G$9!#e(B

From: Nobuyoshi N. <nobu_at_ruby-lang.org>
Date: Mon, 27 Apr 2009 14:36:25 +0900

irb e$B$r5/F0$9$k$H0J2<$N$h$&$J%a%C%;!<%8$,=P$k$h$&$G$9!#e(B

irbe$B$@$1$G$9$+e(B?

Ruby e$BK\BN$G$b=P$F$^$7$?!#e(B

Gem::ConfigMap[:sitelibdir] e$B$He(B $: e$B$NCM$O$I$&$J$C$F$$$k$G$7$g$&$+!#e(B

$ ruby1.9 -ve ‘puts Gem::ConfigMap[:sitelibdir]; puts; puts $:’
ruby 1.9.2dev (2009-04-26 trunk 23293) [i686-linux]
Error loading gem paths on load path in gem_prelude
no implicit conversion from nil to integer
internal:gem_prelude:320:in []=' <internal:gem_prelude>:320:inpush_all_highest_version_gems_on_load_path’
internal:gem_prelude:344:in `’
/home/nov/ruby/lib/ruby/site_ruby/ruby_version=1".“9”."1

/home/nov/ruby/lib/ruby/site_ruby/1.9.1
/home/nov/ruby/lib/ruby/site_ruby/1.9.1/i686-linux
/home/nov/ruby/lib/ruby/site_ruby
/home/nov/ruby/lib/ruby/vendor_ruby/1.9.1
/home/nov/ruby/lib/ruby/vendor_ruby/1.9.1/i686-linux
/home/nov/ruby/lib/ruby/vendor_ruby
/home/nov/ruby/lib/ruby/1.9.1
/home/nov/ruby/lib/ruby/1.9.1/i686-linux
.

e$B$H$J$C$F$$$^$9!#e(B


#4

e$B$$$^$$$G$9!#e(B

From: Nobuhiro IMAI <nov_at_yo.rim.or.jp>
Date: Mon, 27 Apr 2009 15:18:20 +0900

/home/nov/ruby/lib/ruby/site_ruby/ruby_version=1".“9”."1

puts e$B$K$7$?$+$iJ,$+$i$J$+$C$?$N$G$9$,!"e(B

$ ls -l /home/nov/ruby/lib/ruby/site_ruby/
total 0
drwxr-xr-x 3 nov nov 80 Apr 26 20:48
?[01;31mruby_version=?[m1".“9”."1/
drwxr-xr-x 3 nov nov 80 Oct 4 2007 1.9/
drwxr-xr-x 3 nov nov 80 Dec 10 17:52 1.9.1/

e$B$3$s$J$3$H$K$J$C$F$k$h$&$G$9!#$I$&$b:G6a<j85$Ge(B GREP_OPTIONS
e$B$H$+e(B
GREP_COLORS e$B$r;XDj$7$?$N$,860x$C$]$$$G$9!#$3$l$i$re(B unset
e$B$7$F%3%s%Q%$e(B
e$B%k$7D>$7$F$_$^$9!#e(B


#5

e$B%A%1%C%He(B #1410 e$B$,99?7$5$l$^$7$?!#e(B (by Nobuyoshi N.)

e$B%9%F!<%?%9e(B Opene$B$+$ie(BClosede$B$KJQ99e(B
e$B?JD=e(B % 0e$B$+$ie(B100e$B$KJQ99e(B

Applied in changeset r23300.

http://redmine.ruby-lang.org/issues/show/1410


#6

e$B$$$^$$$G$9!#e(B

From: Nobuhiro IMAI <nov_at_yo.rim.or.jp>
Date: Mon, 27 Apr 2009 15:43:51 +0900

e$B$3$s$J$3$H$K$J$C$F$k$h$&$G$9!#$I$&$b:G6a<j85$Ge(B GREP_OPTIONS e$B$H$+e(B
GREP_COLORS e$B$r;XDj$7$?$N$,860x$C$]$$$G$9!#$3$l$i$re(B unset e$B$7$F%3%s%Q%$e(B
e$B%k$7D>$7$F$_$^$9!#e(B

$ unset GREP_OPTIONS
$ touch …/trunk/configure
$ make all install
$ ruby1.9 -ve ‘puts Gem::ConfigMap[:sitelibdir]; puts; puts $:’
ruby 1.9.2dev (2009-04-26) [i686-linux]
/home/nov/ruby/lib/ruby/site_ruby/1.9.1

/home/nov/gems/gems/merb_datamapper-1.0.11/lib
:
:

e$B$H$$$&46$8$G$7$?!#$*A{$,$;$7$^$7$?!#e(B