Project

General

Profile

Replicant60BuildDependenciesInstallation » History » Version 34

Denis 'GNUtoo' Carikli, 06/01/2014 08:53 AM
parabola: Fix linebreak

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
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
38
</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 19 Paul Kocialkowski
* If the packages manager complains about @lib32readline5-dev@ being missing, replace it with @lib32readline-gplv2dev@ in the command line.
51
* 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 30 Denis 'GNUtoo' Carikli
h4. For 32bit and 64 bit installations
64
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 34 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/jre7-openjdk extra/jdk7-openjdk extra/wget extra/zip community/squashfs-tools libre/pngcrush
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 29 Denis 'GNUtoo' Carikli
h4. Extra packages for 64bit installations.
83
84 26 Denis 'GNUtoo' Carikli
64bit installations require more packages because some uttilities(like adb) are built for 32bit computers.
85
86
Add the following repository in /etc/pacman.conf:
87 15 Denis 'GNUtoo' Carikli
<pre>
88
[multilib]
89 7 Denis 'GNUtoo' Carikli
Include = /etc/pacman.d/mirrorlist
90 16 Denis 'GNUtoo' Carikli
</pre>
91 26 Denis 'GNUtoo' Carikli
Then install the missing dependencies for 64bit:
92 18 Denis 'GNUtoo' Carikli
<pre>
93 16 Denis 'GNUtoo' Carikli
pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib
94 1 Paul Kocialkowski
</pre>