Project

General

Profile

Replicant60BuildDependenciesInstallation » History » Version 39

Paul Kocialkowski, 08/03/2014 09:35 PM

1 22 Paul Kocialkowski
h1. Build Dependencies Installation
2 6 Paul Kocialkowski
3 2 Paul Kocialkowski
In order to be able to build Replicant, you need to install some (free) software:
4
5 4 Paul Kocialkowski
h2. Required Packages
6 1 Paul Kocialkowski
7 19 Paul Kocialkowski
* python 2.x
8 4 Paul Kocialkowski
* bison
9
* flex
10 19 Paul Kocialkowski
* git
11 1 Paul Kocialkowski
* gperf
12 19 Paul Kocialkowski
* libncurses development headers
13
* make
14
* gcc, g++
15
* mksquashfs
16 1 Paul Kocialkowski
* openjdk 6
17 19 Paul Kocialkowski
* pngcrush
18
* wget
19 1 Paul Kocialkowski
* zip
20 19 Paul Kocialkowski
* zlib development headers
21 4 Paul Kocialkowski
* lzma
22
23 19 Paul Kocialkowski
h3. Additional requirements for 64 bit computers
24 1 Paul Kocialkowski
25 19 Paul Kocialkowski
* 32 bit libncurses
26
* 32 bit libreadline
27
* 32 bit libc6 headers
28
* 32 bit zlib
29
* gcc, g++ multilib support
30 1 Paul Kocialkowski
31
h2. Command line installation
32
33 20 Da vi
h3. Trisquel/Debian/Ubuntu
34 4 Paul Kocialkowski
35 19 Paul Kocialkowski
Required Packages:
36 4 Paul Kocialkowski
<pre>
37 39 Paul Kocialkowski
apt-get install  bison flex git-core gperf libncurses-dev build-essential squashfs-tools openjdk-6-jre openjdk-6-jdk pngcrush wget zip zlib1g-dev lzma libxml2-utils
38 4 Paul Kocialkowski
</pre>
39
40 19 Paul Kocialkowski
Additional requirements for 64 bit computers:
41 4 Paul Kocialkowski
<pre>
42
apt-get install libc6-dev-i386 gcc-multilib g++-multilib lib32z1-dev lib32readline5-dev lib32ncurses5-dev 
43
</pre>
44 1 Paul Kocialkowski
45 21 Paul Kocialkowski
On Debian sid, multi-arch i386 has to be enabled and the following is also required:
46
<pre>
47
apt-get install zlib1g-dev:i386
48
</pre>
49
50 38 Paul Kocialkowski
* If the packages manager complains about @lib32readline5-dev@ being missing, replace it with @lib32readline-gplv2-dev@ in the command line.
51 19 Paul Kocialkowski
* If the @/usr/lib/zconf.h@ header is missing, you will have to create a symlink there:
52
<pre>
53
sudo ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h
54
</pre>
55
* If you see errors about incompatible library versions, you may need some symlinks. For example:
56
<pre>
57
sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so
58
sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so
59
</pre>
60
61 9 Denis 'GNUtoo' Carikli
h3. Parabola/Arch
62 13 Denis 'GNUtoo' Carikli
63 39 Paul Kocialkowski
h4. For 32 bit and 64 bit installations
64 30 Denis 'GNUtoo' Carikli
65 26 Denis 'GNUtoo' Carikli
Then update all packages::
66 1 Paul Kocialkowski
<pre>
67
pacman -Syu
68 26 Denis 'GNUtoo' Carikli
</pre>
69
70
Then install the required Packages:
71
<pre>
72 36 Denis 'GNUtoo' Carikli
pacman -S core/bison core/flex core/make core/ncurses core/xz core/zlib extra/bc extra/git extra/gperf extra/gperftools extra/jdk7-openjdk extra/openjdk7-src extra/jre7-openjdk extra/wget extra/zip community/squashfs-tools libre/pngcrush libre/unzip-libre
73 1 Paul Kocialkowski
</pre>
74 7 Denis 'GNUtoo' Carikli
75 28 Denis 'GNUtoo' Carikli
Also set python2 as the default for now.
76
(Else repo will issue such warning: "warning: Python 3 support is currently experimental. YMMV.")
77
<pre>
78
cd /usr/local/bin/
79
ln -s /usr/bin/python2 ./python
80
</pre>
81
82 39 Paul Kocialkowski
h4. Extra packages for 64 bit installations
83 29 Denis 'GNUtoo' Carikli
84 39 Paul Kocialkowski
64 bit installations require more packages because some uttilities (like adb) are built for 32bit computers.
85 26 Denis 'GNUtoo' Carikli
86
Add the following repository in /etc/pacman.conf:
87 15 Denis 'GNUtoo' Carikli
<pre>
88 37 Denis 'GNUtoo' Carikli
[libre-multilib]
89
Include = /etc/pacman.d/mirrorlist
90
91 15 Denis 'GNUtoo' Carikli
[multilib]
92 7 Denis 'GNUtoo' Carikli
Include = /etc/pacman.d/mirrorlist
93 16 Denis 'GNUtoo' Carikli
</pre>
94 26 Denis 'GNUtoo' Carikli
Then install the missing dependencies for 64bit:
95 18 Denis 'GNUtoo' Carikli
<pre>
96 16 Denis 'GNUtoo' Carikli
pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib
97 1 Paul Kocialkowski
</pre>