The full, canonical list of steps to build Rebol 3 (from either the "mainline" repository at https://github.com/rebol/rebol; or the "community" repository at https://github.com/rebolsource/r3), at the moment, are:
- Fetch a Rebol 3 source distribution.
- Download a pre-built Rebol 3 binary for your platform, save it as
r3-make
(or r3-make.exe
, if on Windows) in the make/
subdirectory of your sources.
- From a terminal, in the
make/
subdirectory of your sources, run:
make make OS_ID=<tyour-target-platform>
make clean
make prep
make r3
(or make r3.exe
, if on Windows)
Where <tuple-of-your-target-platform>
is a Rebol tuple! with the Rebol platform code of the target you want to build for. A few common target tuples:
0.2.5
: 32-bit OSX x86.
0.3.1
: 32-bit Windows x86
0.4.4
: 32-bit Linux x86
For more, have a look at the src/tools/systems.r
coming with your sources.
For your particular situation, there's two caveats to note:
- Mainline rebol/rebol has no 64-bit support whatsoever, at the moment. (But see footnote 1.)
- The
r3-make
binary you use must itself be built to a target the build system for the new R3 you intend to build knows about.
The combination of these two caveats, when applied to your particular situation, means that you can't use a 64-bit (0.4.40) r3-make (the Linux x64 binary you obtained from https://www.rebolsource.net) to bootstrap a build for sources which don't know about 0.4.40 -- and, indeed the sources you obtained from https://github.com/rebol/rebol don't know about 0.4.40.
Footnote 1: 64-bit support where above build instructions will work is available in the rebolsource/r3 fork. Other forks (such as Atronix', Saphirion's, or the most recent unifying effort, Ren/C) also support 64-bit builds, but build instructions for those generally differ.