When doing a full install, i.e. not the default "pre-built" install, the installer will fail with a message similar to
$ sudo ./InstallSICStus
...
Configuring system. This may take a few minutes...
Configuration phase failed. Output:
configure: error: cannot run /usr/bin/sh ./config.sub
...
Installation aborted.
A workaround is to download the missing file into the same folder as
where InstallSICStus
is located, e.g.
$ curl --output config.sub https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
You can then start the installer again (it will remember your previous answers to any questions).