BuildAnubisFromSources64bits

Version 7 (Masaki Abe, 10/25/2025 03:11 AM)

1 5 David RENÉ
h1. Build Anubis From Sources on linux 64bits
2 1 David RENÉ
3 7 Masaki Abe
h2. Required dependencies
4 7 Masaki Abe
5 1 David RENÉ
Anubis compile as 32 bits application.
6 1 David RENÉ
Hence we must install multilib to compile.
7 1 David RENÉ
8 1 David RENÉ
On debian 
9 1 David RENÉ
10 1 David RENÉ
<pre>
11 1 David RENÉ
apt-get install gcc-multilib
12 1 David RENÉ
apt-get install g++-multilib
13 1 David RENÉ
</pre>
14 2 David RENÉ
15 3 David RENÉ
to compile Anubis compiler and VM we use scons (multi platform make).
16 3 David RENÉ
Need bison and flex for building the Anubis compiler
17 2 David RENÉ
18 2 David RENÉ
<pre>
19 1 David RENÉ
apt-get install scons
20 3 David RENÉ
apt-get install bison
21 3 David RENÉ
apt-get install flex
22 1 David RENÉ
</pre>
23 3 David RENÉ
24 7 Masaki Abe
h2. Get sources
25 1 David RENÉ
26 7 Masaki Abe
<pre>
27 7 Masaki Abe
git clone https://gitlab.anubis-lang.com/anubis/anubis.git
28 7 Masaki Abe
# switch to current version branch
29 7 Masaki Abe
cd anubis && git switch ANUBIS_1_19
30 7 Masaki Abe
</pre>
31 1 David RENÉ
32 7 Masaki Abe
h2. Compile
33 7 Masaki Abe
34 2 David RENÉ
+Compiler:+
35 1 David RENÉ
36 2 David RENÉ
<pre>
37 7 Masaki Abe
cd anubis_dev/compiler
38 2 David RENÉ
scons
39 1 David RENÉ
</pre>
40 5 David RENÉ
41 5 David RENÉ
+VM:+
42 5 David RENÉ
43 5 David RENÉ
At first you must compile the OpenSSL in third_dev directory to be able to compile the VM correctly.
44 5 David RENÉ
45 6 David RENÉ
see [[BuildOpenSSLForAnubisVM|here]] to how to compile the OpenSSL for Anubis VM.
46 6 David RENÉ
47 6 David RENÉ
Now to compile the VM, go to vm folder and execute scons with the desire options
48 6 David RENÉ
49 6 David RENÉ
<pre>
50 6 David RENÉ
cd anubis/anubis_dev/vm
51 6 David RENÉ
scons GUI=0
52 6 David RENÉ
</pre>
Redmine Appliance - Powered by TurnKey Linux