[bug:trunk] cannot install ruby on windows

e$B$3$s$K$A$O!"$J$+$`$ie(B(e$B$&e(B)e$B$G$9!#e(B

IRCe$B$G;XE&$5$l$F5$IU$$$?$N$G$9$,e(B(e$B$H$$$&$+%S%k%I$G$-$F$J$+$C$?e(B
e$B$N$G5$IU$1$J$+$C$?$N$G$9$,e(B)e$B!"e(BWindowse$B$Ge(Bmake
installe$B$,$G$-$J$/e(B
e$B$J$C$F$$$^$9!#e(B
e$B860x$O!"e(Br27638e$B$Ge(Blib/tmpdir.rbe$B$,e(Btmpdir.soe$B$Ne(Brequiree$B<:GT$r5v$5$Je(B
e$B$/$J$C$?$?$ae(B(e$B$3$NJQ99<+BN$O@5$7$$e(B)e$B!"e(Btool/rbinstall.rbe$B$Ge(Brequire
e$B$7$F$$$ke(Blib/tempfile.rbe$B$,e(Brequiree$B$7$F$ke(Blib/tmpdir.rbe$B$,Nc30$rH/e(B
e$B@8$9$k$h$&$K$J$C$?$3$H$G$9!#e(B

e$B$R$I$$F|K\8le(B

e$B;W$&$K!"e(Btool/rbinstall.rbe$B$,<B9T$5$l$F$$$k;~E@$G$OK\J*$Ne(Brubye$B$,e(B
e$B40@.$7$F$$$k$o$1$J$N$G!"e(Bminirubye$B$G$J$/$=$Ne(Brubye$B$r;H$C$F%$%s%9e(B
e$B%H!<%k$=$j$c$$$$$8$c$s$H$$$&5$$,$7$^$9!#e(B
e$B$H$$$&$o$1$GKvHx$K%Q%C%A$r$D$1$^$9!#e(B

e$B$,!":#EY$O<B9TCf$N%U%!%$%k$K%"%/%;%9$G$-$J$$4D6-$H$+$,$"$C$?e(B
e$B$j$7$F5c$/?M$,$$$k$s$8$c$J$$$+$H$$$&5$$b$9$k$s$G$9$,!"$$$+$,e(B
e$B$J$b$s$G$7$g$&$+e(B?

Index: common.mk

— common.mk (revision 27646)
+++ common.mk (working copy)
@@ -106,7 +106,7 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)"
–make-flags="$(MAKEFLAGS)"
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic
$(EXTSTATIC)
–make-flags=“MINIRUBY=’$(MINIRUBY)’” –
-INSTRUBY = $(MINIRUBY) $(srcdir)/tool/rbinstall.rb
+INSTRUBY = $(XRUBY) $(srcdir)/tool/rbinstall.rb
INSTRUBY_ARGS = $(SCRIPT_ARGS)
–data-mode=$(INSTALL_DATA_MODE)
–prog-mode=$(INSTALL_PROG_MODE)
Index: tool/rbinstall.rb

— tool/rbinstall.rb (revision 27646)
+++ tool/rbinstall.rb (working copy)
@@ -10,9 +10,7 @@ else
end

srcdir = File.expand_path(’…/…’, FILE)
-unless defined?(CROSS_COMPILING) and CROSS_COMPILING

  • $:.replace([srcdir+"/lib", Dir.pwd])
    -end

require ‘fileutils’
require ‘shellwords’
require ‘optparse’

e$B$=$l$G$O!#e(B

e$B%A%1%C%He(B #3253 e$B$,99?7$5$l$^$7$?!#e(B (by Kazuhiro NISHIYAMA)

e$B%+%F%4%je(B e$B:o=|e(B (build)
e$BM%@hEYe(B Normale$B$+$ie(BLowe$B$KJQ99e(B
Target version e$B:o=|e(B (1.9.2)

#1851
e$B$N%/%m%9%S%k%I$N4D6-$G$9$,!":G=E$K$O$3$C$A$NLdBj$K0z$C$+$+$C$Fe(Bmake
installe$B$,=PMh$F$$$^$;$s!#e(B

i386-mingw32-fakee$B$Ge(BRUBY_PLATFORMe$B$,e(B"i386-mingw32"e$B$K$J$C$F$$$F!Ve(B/mswin|mingw/
=~ RUBY_PLATFORMe$B!W$,??$K$J$k$N$K!Ve(Bruby 1.9.2dev (2010-05-06 trunk
27646) [i686-linux]e$B!W$NJ}$K$Oe(B tmpdir.so e$B$,$J$$$N$Ge(B LoadError
e$B$K$J$j$^$9!#e(B

[user1@fedora11 ~]$ ruby -v -I/home/user1/ruby-trunk -ri386-mingw32-fake
-e ‘p RUBY_PLATFORM; require “tmpdir”’
ruby 1.9.2dev (2010-05-06 trunk 27646) [i686-linux]
“i386-mingw32”
/home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tmpdir.rb:9:in require': no such file to load -- tmpdir.so (LoadError) from /home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tmpdir.rb:9:in <top (required)>’
from -e:1:in require' from -e:1:in
[user1@fedora11 ~]$

[user1@fedora11 ruby-trunk]$ make DESTDIR=$HOME/ruby-mingw32 install
(e$BN,e(B)
Generating file member index…
ruby -I/home/user1/ruby-trunk -ri386-mingw32-fake ./tool/rbinstall.rb
–make=“make” --dest-dir=“/home/user1/ruby-mingw32” --extout=“.ext”
–mflags=“” --make-flags=“DESTDIR=/home/user1/ruby-mingw32”
–data-mode=0644 --prog-mode=0755 --installed-list .installed.list
–install=all --rdoc-output=“.ext/rdoc”
/home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tmpdir.rb:9:in require': no such file to load -- tmpdir.so (LoadError) from /home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tmpdir.rb:9:in <top (required)>’
from /home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tempfile.rb:8:in
require' from /home/user1/opt/ruby-trunk/lib/ruby/1.9.1/tempfile.rb:8:in <top (required)>’
from ./tool/rbinstall.rb:18:in require' from ./tool/rbinstall.rb:18:in
make: *** [do-install-all] e$B%(%i!<e(B 1
[user1@fedora11 ruby-trunk]$


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

e$B%A%1%C%He(B #3253 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

This issue was solved with changeset r27653.
Usaku, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


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