Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:toolchain:install-buildsystem [2022/04/25 17:20] – [Linux (GNU-Linux) distributions:] add python2 depreciation. mercygroundabyss | docs:guide-developer:toolchain:install-buildsystem [2024/09/30 18:39] (current) – [Void] Remove Python 2 and add missing packages from the requirements table harpia | ||
|---|---|---|---|
| Line 11: | Line 11: | ||
| < | < | ||
| - | ^ Prerequisite ^ Debian ^ SUSE ^ Red Hat ^ macOS (via MacPorts) ^ Fedora ^ Arch ^ Gentoo ^ | + | ^ Prerequisite |
| - | | asciidoc | asciidoc | asciidoc | asciidoc | asciidoc | asciidoc | asciidoc | app-text/ | + | | asciidoc |
| - | | [[wp> | + | | [[wp> |
| - | | [[wp>GNU Binutils]] | binutils | binutils| binutils| binutils| binutils| binutils| sys-devel/ | + | | [[wp>GNU Binutils]] |
| - | | [[wp> | + | | [[wp> |
| - | | [[wp> | + | | [[wp> |
| - | | [[wp>Git (software)|git]] | git-core| git-core| git | git-core | git | git| dev-vcs/git | | + | | [[wp>Git (software)|git]] |
| - | | [[wp>GNU C++ Compiler]] | %%g++%% | %%gcc-c++%% | %%gcc-c++%% | ? | %%gcc-c++%% | gcc | sys-devel/ | + | | [[wp>GNU C++ Compiler]] |
| - | | [[wp>GNU C Compiler]] | gcc| gcc| gcc| ?| gcc| gcc| sys-devel/ | + | | [[wp>GNU C Compiler]] |
| - | | GNU Time | ? | ? | ? | gtime | ? | time | sys-process/ | + | | GNU Time |
| - | | getopt | util-linux | util-linux | util-linux | getopt| util-linux | util-linux | sys-apps/ | + | | getopt |
| - | | [[wp>GNU awk]] | gawk| gawk| gawk| gawk| gawk| gawk| sys-apps/ | + | | [[wp>GNU awk]] |
| - | | help2man | help2man | ? | ? | help2man | help2man | help2man | sys-apps/ | + | | [[wp> |
| - | | intltool-update | intltool| intltool| intltool| intltool| intltool| intltool | dev-util/ | + | | help2man |
| - | | libelf-dev | libelf-dev | ? | ? | libelf | elfutils-libelf-devel | libelf | virtual/ | + | | intltool-update |
| - | | libz, libz-dev | zlib1g-dev | zlib-devel| zlib-devel| zlib, libzip, libzzip | zlib-devel| zlib | sys-libs/ | + | | libelf-dev |
| - | | [[wp> | + | | libz, libz-dev |
| - | | [[wp> | + | | [[wp> |
| - | | openssl/ | + | | [[wp> |
| - | | patch| patch | patch | patch | patchutils| patch| patch | sys-devel/ | + | | openssl/ |
| - | | perl-ExtUtils-MakeMaker| perl-modules | perl-ExtUtils-MakeMaker| perl-ExtUtils-MakeMaker| p5-extutils-makemaker| perl-ExtUtils-MakeMaker| perl-extutils-makemaker | virtual/ | + | | patch | patch |
| - | | perl-Thread-Queue | ? | ? | ? | ? | perl-Thread-Queue | ? | virtual/ | + | | perl-ExtUtils-MakeMaker |
| - | | python2-dev | python2-dev | python-devel | ?| python27 | ? | python2 | dev-lang/ | + | | perl-Thread-Queue |
| - | | ? | python3-dev | ? | ? | python310 | ? | ? | ? | | + | | python2-dev |
| - | | unzip | unzip| unzip| unzip| unzip| unzip| unzip | app-arch/ | + | | ? | python3-dev |
| - | | [[wp>GNU Wget]] | wget | wget| wget| wget| wget| wget | net-misc/ | + | | [[wp> |
| - | | xgettext | gettext| gettext-tools| gettext | gettext| gettext| gettext | sys-devel/ | + | | unzip | unzip |
| - | | xsltproc | xsltproc| libxslt-tools| ?| libxslt| libxslt| libxslt | dev-libs/ | + | | [[wp>GNU Wget]] |
| - | | zlib, zlib-static| zlib1g-dev| zlib-devel-static | zlib-devel | zlib | zlib-devel, | + | | xgettext |
| + | | xsltproc | ||
| + | | zlib, zlib-static | ||
| </ | </ | ||
| Line 58: | Line 60: | ||
| | lilo | bcc< | | lilo | bcc< | ||
| | lilo | uudecode | sharutils | | | sharutils | sharutils | sharutils | app-arch/ | | lilo | uudecode | sharutils | | | sharutils | sharutils | sharutils | app-arch/ | ||
| - | | luajit | x86 %%g++%% libs on amd64 hosts| %%gcc-multilib%% | | | | | | | | + | | luajit, |
| - | | classpath (aka: gnu-classpath) < | + | | classpath (aka: gnu-classpath) < |
| - | | mac80211 | b43-fwcutter< | + | | mac80211 | b43-fwcutter< |
| - | | jamvm< | + | | jamvm< |
| </ | </ | ||
| Line 67: | Line 69: | ||
| Distribution-specific instructions. | Distribution-specific instructions. | ||
| - | Please note that OpenWrt master, 22.03 and 21.02 branches | + | <WRAP info> |
| ==== Alpine ==== | ==== Alpine ==== | ||
| <code bash> | <code bash> | ||
| - | apk add asciidoc bash bc binutils bzip2 cdrkit coreutils | + | apk add argp-standalone |
| - | findutils flex g++ gawk gcc gettext git grep intltool libxslt | + | |
| - | linux-headers make ncurses-dev openssl-dev patch perl python2-dev \ | + | |
| - | python3-dev rsync tar unzip util-linux wget zlib-dev | + | |
| + | | ||
| + | |||
| + | # python2-dev required for OpenWrt 19.07 and earlier is not available on Alpine Linux 3.16 and newer | ||
| + | |||
| + | # missing dependency workaround (libtinfo is not installable by any APK package, | ||
| + | # but can be simulated via libncurses (see: https:// | ||
| + | # w/o this - ERROR: package/ | ||
| + | ln -s / | ||
| </ | </ | ||
| - | ==== Arch / Manjaro ==== | + | ==== Arch / Manjaro |
| Arch users may install the [[https:// | Arch users may install the [[https:// | ||
| Line 85: | Line 95: | ||
| bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff \ | bzip2 fakeroot file findutils flex gawk gcc gettext git grep groff \ | ||
| gzip libelf libtool libxslt m4 make ncurses openssl patch pkgconf \ | gzip libelf libtool libxslt m4 make ncurses openssl patch pkgconf \ | ||
| - | python rsync sed texinfo time unzip util-linux wget which zlib | + | python |
| # Optional prerequisites, | # Optional prerequisites, | ||
| - | pacman -S --needed asciidoc help2man intltool perl-extutils-makemaker | + | pacman -S --needed asciidoc help2man intltool perl-extutils-makemaker |
| </ | </ | ||
| - | ==== CentOS / Fedora ==== | + | ==== Fedora |
| <code bash> | <code bash> | ||
| sudo dnf --setopt install_weak_deps=False --skip-broken install \ | sudo dnf --setopt install_weak_deps=False --skip-broken install \ | ||
| Line 97: | Line 107: | ||
| rsync tar unzip wget which diffutils python2 python3 perl-base \ | rsync tar unzip wget which diffutils python2 python3 perl-base \ | ||
| perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin \ | perl-Data-Dumper perl-File-Compare perl-File-Copy perl-FindBin \ | ||
| - | perl-Thread-Queue | + | perl-IPC-Cmd perl-JSON-PP |
| </ | </ | ||
| - | ==== Debian / Ubuntu ==== | + | ==== Debian / Ubuntu |
| - | Modernized set for Ubuntu | + | |
| + | |||
| + | Modernized set for Ubuntu | ||
| + | (OpenWrt | ||
| <code bash> | <code bash> | ||
| sudo apt update | sudo apt update | ||
| - | sudo apt install build-essential gawk gcc-multilib | + | sudo apt install build-essential |
| + | gcc-multilib | ||
| + | python3-setuptools rsync swig unzip zlib1g-dev | ||
| </ | </ | ||
| - | Older advice: | + | |
| + | |||
| + | set for Ubuntu 22.04 (that has older Python 3.xx): | ||
| + | |||
| + | <code bash> | ||
| + | sudo apt update | ||
| + | sudo apt install build-essential clang flex bison g++ gawk \ | ||
| + | gcc-multilib g++-multilib gettext git libncurses-dev libssl-dev \ | ||
| + | python3-distutils python3-setuptools rsync swig unzip zlib1g-dev file wget | ||
| + | </ | ||
| + | |||
| + | Older advice | ||
| <code bash> | <code bash> | ||
| sudo apt update | sudo apt update | ||
| Line 112: | Line 140: | ||
| gettext git java-propose-classpath libelf-dev libncurses5-dev \ | gettext git java-propose-classpath libelf-dev libncurses5-dev \ | ||
| libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \ | libncursesw5-dev libssl-dev python python2.7-dev python3 unzip wget \ | ||
| - | python-distutils-extra | + | python3-distutils python3-setuptools python3-dev rsync subversion \ |
| swig time xsltproc zlib1g-dev | swig time xsltproc zlib1g-dev | ||
| </ | </ | ||
| Line 145: | Line 173: | ||
| coreutils diffutils findutils flex gawk gcc gettext git grep intltool \ | coreutils diffutils findutils flex gawk gcc gettext git grep intltool \ | ||
| libxslt linux-headers make ncurses-devel openssl-devel patch perl \ | libxslt linux-headers make ncurses-devel openssl-devel patch perl \ | ||
| - | pkg-config | + | pkg-config python3-devel rsync tar unzip util-linux |
| - | wget zlib-devel | + | zlib-devel time libelf perl-ExtUtils-MakeMaker-CPANfile \ |
| + | help2man swig | ||
| + | |||
| + | # for musl version, also install: argp-standalone musl-fts-devel musl-obstack-devel | ||
| </ | </ | ||