From: Christian Bodt Date: 2010-02-16T20:49:43+09:00 Subject: [ruby-core:28188] [Bug #2750] build fails on win32/MinGW: "executable host ruby is required." even when --with-baseruby is used Bug #2750: build fails on win32/MinGW: "executable host ruby is required." even when --with-baseruby is used http://redmine.ruby-lang.org/issues/show/2750 Author: Christian Bodt Status: Open, Priority: Normal ruby -v: ruby 1.9.2, 2010-02-15 1. ACTION Using win32/MinGW: >./configure --with-baseruby=/c/Programs/ruby-1.9/bin/ (...) >make 2. EXPECTED RESULT Build is successfull. 3. ACTUAL RESULT Build fails with the error "executable host ruby is required. " even if "ruby.exe" is in the path or if the correct directory has been given using --with-baseruby >make echo executable host ruby is required. use --with-baseruby option.; false -I. . /tool/compile_prelude.rb ./prelude.rb miniprelude.c executable host ruby is required. use --with-baseruby option. make: *** [miniprelude.c] Error 1 4. ANALYSIS In configure.in line 22 we see `RUBYOPT=- $BASERUBY -e 'p 42' 2>/dev/null`" = 42 But when running the command "RUBYOPT=- /c/Programs/ruby-1.9/bin/ruby.exe -e 'p 42'" we get the error: c:\Programs\ruby-1.9\bin\ruby.exe: invalid switch in RUBYOPT: -C (RuntimeError) The error is fixed when removing the minus sign in configure.in (line 22). (Why is there a minus sign in RUBYOPT?) "RUBYOPT=- /c/Programs/ruby-1.9/bin/ruby.exe -e 'p 42'" 5. SUGGESTED FIX 1. remove the - sign in configure.in (line 22) `RUBYOPT='' $BASERUBY -e 'p 42' 2>/dev/null`" = 42 2. remove the - sign in "common.mk" (line 8) 6. CONFIGURATION: - Mingw / win32 - autoconf 2.63 - baseruby 1.8.7 or 1.9.1 ---------------------------------------- http://redmine.ruby-lang.org