Issue #5492 has been updated by Heesob Park.


I have same issues as above.

If you specify configure prefix as "/", the line #444 of tool/rbinstall.rb produce incorrect result
cmd = File.join(File.dirname(cmd), RbConfig.expand(trans[File.basename(cmd)]))
input -> "//bin/erb"
output -> "//bin/erb/"

This bug is related with File.dirname and File.basename behavior like this:
irb(main):005:0> File.dirname("//bin/erb")
=> "//bin/erb"
irb(main):006:0> File.basename("//bin/erb")
=> "/"
irb(main):007:0> File.dirname("/bin/erb")
=> "/bin"
irb(main):008:0> File.basename("/bin/erb")
=> "erb"

----------------------------------------
Bug #5492: MinGW Installation with Ruby 1.9.3rc1 Broken
http://redmine.ruby-lang.org/issues/5492

Author: Charlie Savage
Status: Open
Priority: High
Assignee: 
Category: build
Target version: 1.9.3
ruby -v: ruby 1.9.3dev (2011-10-11 revision 33457)


This is a regression since at least the preview release, not sure about the rc1 release.  Using MinGW to make and then make install Ruby on Windows 7 now creates the following bin directory:

bin
  erb
     .bat
  gem
     .bat

etc.

Notice the file should be "erb.bat", not a "erb" sudirectory with a file called ".bat" in it.  The same is true for:

erb
gem
irb
rake
rdoc
ri
testrb

This obviously breaks the installation...so marking it high priority.


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