DeprecatedReplicant60BuildDependenciesInstallation » History » Version 1
Wolfgang Wiedmeyer, 03/06/2017 12:11 PM
original version
1 | 1 | Wolfgang Wiedmeyer | h1. Build dependencies installation |
---|---|---|---|
2 | |||
3 | *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 | |||
6 | h2. Debian-based systems |
||
7 | |||
8 | h3. Trisquel 7.0 |
||
9 | |||
10 | Packages installation: |
||
11 | |||
12 | <pre> |
||
13 | 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 |
||
14 | </pre> |
||
15 | |||
16 | h3. Debian 8 |
||
17 | |||
18 | Packages installation: |
||
19 | |||
20 | <pre> |
||
21 | dpkg --add-architecture i386 ; apt-get update |
||
22 | 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 xsltproc |
||
23 | </pre> |
||
24 | |||
25 | h3. Tweaks |
||
26 | |||
27 | * If the packages manager complains about @lib32readline5-dev@ being missing, it has to be replaced with @lib32readline-gplv2-dev@ in the command line. |
||
28 | * If the @/usr/lib/zconf.h@ header is missing, a symlink has to be created: |
||
29 | <pre> |
||
30 | ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h |
||
31 | </pre> |
||
32 | * If errors messages about incompatible library versions are shown, some symlinks have to be created. For instance: |
||
33 | <pre> |
||
34 | sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so |
||
35 | sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so |
||
36 | </pre> |
||
37 | |||
38 | h2. Arch Linux-based systems |
||
39 | |||
40 | h3. Parabola |
||
41 | |||
42 | Base packages (from the Parabola repositories) installation: |
||
43 | <pre> |
||
44 | 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 |
||
45 | </pre> |
||
46 | |||
47 | Some additional repositories are required to retrieve some of the build dependencies. |
||
48 | |||
49 | To enable those repositories, the following should be added to @/etc/pacman.conf@: |
||
50 | <pre> |
||
51 | [libre-multilib] |
||
52 | Include = /etc/pacman.d/mirrorlist |
||
53 | |||
54 | [multilib] |
||
55 | Include = /etc/pacman.d/mirrorlist |
||
56 | </pre> |
||
57 | |||
58 | For these changes to take effect, the packages database should be updated: |
||
59 | <pre> |
||
60 | pacman -Syu |
||
61 | </pre> |
||
62 | |||
63 | Additional packages installation: |
||
64 | <pre> |
||
65 | pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib |
||
66 | </pre> |
||
67 | |||
68 | h3. Tweaks |
||
69 | |||
70 | * repo may complain about experimental python 3 support: python 2 has to be set as default instead: |
||
71 | <pre> |
||
72 | ln -s /usr/bin/python2 /usr/local/bin/python |
||
73 | </pre> |