Project

General

Profile

BuildDependenciesInstallation » History » Version 48

Paul Kocialkowski, 12/30/2015 11:18 AM

1 43 Paul Kocialkowski
h1. Build dependencies installation
2 6 Paul Kocialkowski
3 40 Paul Kocialkowski
*Replicant can only be built on 64 bit x86 architectures, building on 32 bit x86 systems is no longer supported.*
4
However, some prebuilt tools are still 32 bit x86 executables and some host tools are generated as 32 bit x86 executables.
5 19 Paul Kocialkowski
6 40 Paul Kocialkowski
h2. Debian-based systems
7 19 Paul Kocialkowski
8 40 Paul Kocialkowski
h3. Trisquel 7.0
9 1 Paul Kocialkowski
10 4 Paul Kocialkowski
<pre>
11 40 Paul Kocialkowski
apt-get install git gnupg flex bison gperf build-essential zip curl openjdk-7-jre openjdk-7-jdk libc6-dev libncurses5-dev:i386 x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown libxml2-utils xsltproc zlib1g-dev:i386
12 39 Paul Kocialkowski
</pre>
13 1 Paul Kocialkowski
14 40 Paul Kocialkowski
h3. Debian 8
15 1 Paul Kocialkowski
16
<pre>
17 46 Paul Kocialkowski
apt-get install  bison flex git-core gperf libncurses-dev build-essential curl squashfs-tools openjdk-7-jre openjdk-7-jdk pngcrush wget zip zlib1g-dev lzma libxml2-utils libc6-dev-i386 g++-multilib lib32z1-dev lib32readline-gplv2-dev lib32ncurses5-dev zlib1g-dev:i386 curl
18 1 Paul Kocialkowski
</pre>
19
20 40 Paul Kocialkowski
h3. Tweaks
21
22 1 Paul Kocialkowski
* If the packages manager complains about @lib32readline5-dev@ being missing, replace it with @lib32readline-gplv2-dev@ in the command line.
23 4 Paul Kocialkowski
* If the @/usr/lib/zconf.h@ header is missing, you will have to create a symlink there:
24
<pre>
25 40 Paul Kocialkowski
ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h
26 21 Paul Kocialkowski
</pre>
27 19 Paul Kocialkowski
* If you see errors about incompatible library versions, you may need some symlinks. For example:
28
<pre>
29
sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so
30 26 Denis 'GNUtoo' Carikli
sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so
31 1 Paul Kocialkowski
</pre>
32
33 40 Paul Kocialkowski
h2. Arch Linux-based systems
34 26 Denis 'GNUtoo' Carikli
35 40 Paul Kocialkowski
h3. Parabola
36 26 Denis 'GNUtoo' Carikli
37 47 Paul Kocialkowski
Base packages (from the Parabola repositories) installation:
38 7 Denis 'GNUtoo' Carikli
<pre>
39 47 Paul Kocialkowski
pacman -S core/bison core/flex core/make core/ncurses core/xz core/zlib extra/bc extra/git extra/gperf extra/gperftools libre/jdk7-openjdk extra/openjdk7-src libre/jre7-openjdk extra/wget extra/zip community/squashfs-tools community/pngcrush libre/unzip
40 1 Paul Kocialkowski
</pre>
41
42 47 Paul Kocialkowski
Some additional repositories are required to retrieve some of the build dependencies.
43
44
To enable those repositories, the following should be added to @/etc/pacman.conf@:
45 28 Denis 'GNUtoo' Carikli
<pre>
46
[libre-multilib]
47
Include = /etc/pacman.d/mirrorlist
48 39 Paul Kocialkowski
49 29 Denis 'GNUtoo' Carikli
[multilib]
50 1 Paul Kocialkowski
Include = /etc/pacman.d/mirrorlist
51 39 Paul Kocialkowski
</pre>
52 26 Denis 'GNUtoo' Carikli
53 47 Paul Kocialkowski
For these changes to take effect, the packages database should be updated:
54 1 Paul Kocialkowski
<pre>
55
pacman -Syu
56 47 Paul Kocialkowski
</pre>
57
58
Additional packages installation:
59
<pre>
60 37 Denis 'GNUtoo' Carikli
pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib
61 40 Paul Kocialkowski
</pre>
62
63
h3. Tweaks
64
65 48 Paul Kocialkowski
* repo may complain about experimental python 3 support: python 2 has to be set as default instead:
66 40 Paul Kocialkowski
<pre>
67
ln -s /usr/bin/python2 /usr/local/bin/python
68 1 Paul Kocialkowski
</pre>