Project

General

Profile

Actions

Bug #2750

closed

build fails on win32/MinGW: "executable host ruby is required." even when --with-baseruby is used

Added by sirk390 (Christian Bodt) about 14 years ago. Updated almost 13 years ago.

Status:
Third Party's Issue
Assignee:
-
ruby -v:
ruby 1.9.2, 2010-02-15
[ruby-core:28188]

Description

=begin

  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
    =end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0