Build suite: “configure: error: cannot run /bin/sh tool/config.sub”

Hi,

I try to compile the Ruby interpreter inside a virgin
virtual box. I installed FreeBSD (and Ubuntu before), pulled
Ruby from Github and followed the instructions in README.md.
The ./configure step gives me the message:

  % ./configure
  checking for ruby... false
  configure: error: cannot run /bin/sh tool/config.sub

I found by Google that this problem surfaces again and again
over several years, but the old solutions don't help me. For
example, an `autoreconf --install` didn't solve the issue.

The file `tool/config.sub` doesn't exist.

What can I do next?

Thanks in advance,

Bertram

···

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de

Hey Bertram,

Do you already have a version of Ruby installed on your machine? That seems to be required, even though you can remove it after the first build.

Leam

···

On 5/30/20 11:40 AM, Bertram Scharpf wrote:

Hi,

I try to compile the Ruby interpreter inside a virgin
virtual box. I installed FreeBSD (and Ubuntu before), pulled
Ruby from Github and followed the instructions in README.md.
The ./configure step gives me the message:

   % ./configure
   checking for ruby... false
   configure: error: cannot run /bin/sh tool/config.sub

I found by Google that this problem surfaces again and again
over several years, but the old solutions don't help me. For
example, an `autoreconf --install` didn't solve the issue.

The file `tool/config.sub` doesn't exist.

What can I do next?

Thanks in advance,

Bertram

Hi,

> I try to compile the Ruby interpreter inside a virgin
> virtual box. I installed FreeBSD (and Ubuntu before), pulled
> Ruby from Github and followed the instructions in README.md.
> The ./configure step gives me the message:
>
> % ./configure
> checking for ruby... false
> configure: error: cannot run /bin/sh tool/config.sub
>
> I found by Google that this problem surfaces again and again
> over several years, but the old solutions don't help me. For
> example, an `autoreconf --install` didn't solve the issue.
>
> The file `tool/config.sub` doesn't exist.

Do you already have a version of Ruby installed on your machine? That seems
to be required, even though you can remove it after the first build.

Ah, okay. Thinking about it I'm not really surprised that an
advanced programming language needs itself to build a new
interpreter or compiler. The only thing I wondered about was
that Gentoo can compile it without having any previous Ruby
installation, but then I detected that Gentoo loads sources
from cache.ruby-lang.org/pub/ruby, where the file
`tool/config.sub` has already been built.

Thanks,

Bertram

···

On Saturday, 30. May 2020, 12:13:07 -0400, Leam Hall wrote:

On 5/30/20 11:40 AM, Bertram Scharpf wrote:

--
Bertram Scharpf
Stuttgart, Deutschland/Germany
http://www.bertram-scharpf.de