Ubuntu 22.04 / 20.04
更新软件源,更新系统软件包
sudo apt-get update
sudo apt-get upgrade -y
安装开发依赖
sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof
安装相关工具
sudo apt-get install kconfig-frontends android-tools-mkbootimg python2 libpython3-dev
增加架构支持
sudo dpkg --add-architecture i386
sudo apt-get update
安装支持包
sudo apt install gcc-multilib
sudo apt install libc6:i386 libstdc++6:i386 lib32z1
Ubuntu 18.04
更新软件源,更新系统软件包
sudo apt-get update
sudo apt-get upgrade -y
安装开发依赖
sudo apt-get install build-essential subversion git libncurses5-dev zlib1g-dev gawk flex bison quilt libssl-dev xsltproc libxml-parser-perl mercurial bzr ecj cvs unzip lsof
安装相关工具
sudo apt-get install android-tools-mkbootimg libpython3-dev
增加架构支持
sudo dpkg --add-architecture i386
sudo apt-get update
安装支持包
sudo apt install gcc-multilib
sudo apt install libc6:i386 libstdc++6:i386 lib32z1
Arch Linux / Manjaro
更新软件源,更新系统软件包
pacman -Syyuu
安装开发依赖
pacman -S --needed base-devel autoconf automake bash binutils bison bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff gzip time unzip util-linux wget which zlib asciidoc help2man intltool perl-extutils-makemaker swig
安装相关工具
pacman -S --needed libelf libtool libxslt m4 make ncurses openssl patch pkgconf python rsync sed texinfo
增加架构支持
pacman -S --needed multilib-devel
CentOS / Fedora / openEuler
sudo dnf --setopt install_weak_deps=False --skip-broken install bash-completion bzip2 gcc gcc-c++ git make ncurses-devel patch rsync tar unzip wget which diffutils python2 python3 perl-base perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin perl-Thread-Queue glibc.i686
openSUSE
sudo zypper install --no-recommends asciidoc bash bc binutils bzip2 fastjar flex gawk gcc