Project

General

Profile

Replicant60BuildDependenciesInstallation » History » Revision 19

Revision 18 (Denis 'GNUtoo' Carikli, 04/03/2013 10:13 AM) → Revision 19/89 (Paul Kocialkowski, 11/14/2013 07:30 PM)

h1. Build Dependencies 

 In order to be able to build Replicant, you need to install some (free) software: 

 h2. Required Packages 

 * python 2.x 2.5-2.7 
 * bison 
 * flex 
 * git (git-core) 
 * gperf 
 * libncurses development headers (libncurses-dev) 
 * make (build-essential) 
 * gcc, g++ 
 * mksquashfs (squashfs-tools) 
 * openjdk 6 
 * pngcrush - the build process will complain if it is not installed but builds will complete. 
 * wget (or curl) 
 * zip 
 * zlib development headers (zlib1g-dev) 
 * lzma 

 


 h3. Additional requirements for 64 bit computers 

 amd64 


 * 32 bit libncurses libc6-dev-i386 
 * 32 bit libreadline gcc-multilib 
 * 32 bit libc6 headers g++-multilib  
 * lib32z1-dev  
 * lib32readline5-dev 
 * 32 bit zlib lib32ncurses5-dev 
 * gcc, g++ multilib support 32-bit compatibility libraries 
 * If you see errors about incompatible library versions, you may need some symlinks. For example: 
 *** sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so 
 *** sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so 

 h2. Command line installation 

 

 h3. Trisquel/Ubuntu/Debian 

 Required Packages: packages: 
 <pre> 
 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 
 </pre> 

 Additional requirements for 64 bit computers: amd64: 
 <pre> 
 apt-get install libc6-dev-i386 gcc-multilib g++-multilib lib32z1-dev lib32readline5-dev lib32ncurses5-dev  
 </pre> 

 * If the packages manager complains about @lib32readline5-dev@ being missing, replace it with @lib32readline-gplv2dev@ in the command line. 
 * If the @/usr/lib/zconf.h@ header is missing, you will have to create a symlink there: 
 <pre> 
 sudo ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h 
 </pre> 
 * If you see errors about incompatible library versions, you may need some symlinks. For example: 
 <pre> 
 sudo ln -s /usr/lib32/libstdc++.so.6.0.14 /usr/lib32/libstdc++.so 
 sudo ln -s /usr/lib32/libz.so.1.2.3.4 /usr/lib32/libz.so 
 </pre> 

 

 h3. Parabola/Arch 

 Add the following to /etc/pacman.conf (it should be safe for freedom since lukeshu is part of the parabola community and pcr is a parabola repository): 
 <pre> 
 [pcr] 
 SigLevel = PackageRequired 
 Include = /etc/pacman.d/mirrorlist 

 [~lukeshu] 
 Include = /etc/pacman.d/mirrorlist 
 </pre> 

 Required Packages: packages : 
 <pre> 
 pacman -S core/bison core/flex extra/gperftools core/ncurses community/squashfs-tools pcr/openjdk6-old extra/wget extra/zip core/zlib core/xz ~lukeshu/pngcrush extra/gperf extra/bc 
 </pre> 

 Additional requirements for 64 bit computers: amd64: 
 Uncomment or add the following repository in /etc/pacman.conf: 
 <pre> 
 [multilib] 
 SigLevel = PackageRequired 
 Include = /etc/pacman.d/mirrorlist 
 </pre> 

 <pre> 
 pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib 
 </pre>