« Previous - Version 45/54 (diff) - Next » - Current version
Benedikt Wildenhain, 11/05/2015 02:39 PM
added curl to build-dependencies for Debian 8 (necessary according to pmezard)

Build dependencies installation

Replicant can only be built on 64 bit x86 architectures, building on 32 bit x86 systems is no longer supported.
However, some prebuilt tools are still 32 bit x86 executables and some host tools are generated as 32 bit x86 executables.

Debian-based systems

Trisquel 7.0

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

Debian 8

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 


  • If the packages manager complains about lib32readline5-dev being missing, replace it with lib32readline-gplv2-dev in the command line.
  • If the /usr/lib/zconf.h header is missing, you will have to create a symlink there:
    ln -s /usr/include/x86_64-linux-gnu/zconf.h /usr/lib/zconf.h
  • 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. /usr/lib32/libz.so

Arch Linux-based systems


pacman -Syu
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

Add the following repository in /etc/pacman.conf:

Include = /etc/pacman.d/mirrorlist

Include = /etc/pacman.d/mirrorlist

pacman -Syu
pacman -S multilib/lib32-glibc multilib/gcc-multilib multilib/lib32-readline multilib/lib32-ncurses multilib/lib32-zlib


  • If repo complains about experimental python 3 support, set python 2 as default:
    ln -s /usr/bin/python2 /usr/local/bin/python

Wiki License: Creative Commons BY-SA