%general-entities; ]> 依赖关系 LFS 中构建的每个软件包都依赖于一个或多个其他软件包, 才能正确地构建和安装。某些软件包甚至存在循环依赖, 即第一个软件包依赖于第二个软件包,而第二个软件包反过来又依赖第一个。 由于这些依赖关系的存在,在 LFS 中构建软件包的顺序非常关键。 本页面的目的就是记录 LFS 中每个软件包构建时的依赖关系。 对于我们构建的每个软件包,我们都列出了三种甚至四种依赖关系。 第一种列出了编译和安装该软件包需要的其他软件包。 第二种列出了不属于第一种情况, 但在运行该软件包测试套件时需要的其他软件包。 第三种列出了在构建和安装前, 需要该软件包已经构建并安装到最终位置的其他软件包。 多数情况下,这是因为它们会在脚本中硬编码指向二进制程序的路径。 如果不按照特定顺序构建,则最终的系统中某个脚本可能包含路径 /tools/bin/[二进制程序],这显然是我们不希望的。 第四种列出的依赖关系是 LFS 中没有提到的可选软件包, 但它们对用户可能很有用。这些软件包本身可能还有必要或可选的依赖关系。 对于这些依赖关系,推荐的方法是在完成 LFS 手册后, 安装可选依赖项,再重新构建相关的 LFS 软件包。 BLFS 提到了几个软件包的重新安装方法。 Acl &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, 以及 Texinfo &testsuites; Automake, Diffutils, Findutils, 以及 Libtool &before; Coreutils, Sed, Tar, 以及 Vim &external; Attr &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Grep, M4, Make, Perl, Sed, 以及 Texinfo &testsuites; Automake, Diffutils, Findutils, 以及 Libtool &before; Acl 和 Libcap &external; Autoconf &dependencies; Bash, Coreutils, Grep, M4, Make, Perl, Sed, 以及 Texinfo &testsuites; Automake, Diffutils, Findutils, GCC, 以及 Libtool &before; Automake &external; Emacs Automake &dependencies; Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make, Perl, Sed, 以及 Texinfo &testsuites; Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect, Findutils, Flex, GCC, Gettext, Gzip, Libtool, 以及 Tar &before; &external; Bash &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, 以及 Texinfo &testsuites; Shadow &before; &external; Xorg Bc &dependencies; Bash, Binutils, Bison, Coreutils, GCC, Glibc, Grep, Make, Perl, 以及 Readline &testsuites; Gawk &before; Linux Kernel &external; Binutils &dependencies; Bash, Binutils, Coreutils, Diffutils, File, Gawk, GCC, Glibc, Grep, Make, Perl, Sed, Texinfo,以及 Zlib &testsuites; DejaGNU 和 Expect &before; &external; Bison &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Perl, 以及 Sed &testsuites; Diffutils, Findutils, 以及 Flex &before; Kbd 和 Tar &external; Doxygen (test suite) Bzip2 &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make, 以及 Patch &testsuites; &before; &external; Check &dependencies; GCC, Grep, Make, Sed, 以及 Texinfo &testsuites; &before; &external; Coreutils &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, Patch, Perl, Sed, 以及 Texinfo &testsuites; Diffutils, E2fsprogs, Findutils, Shadow, 以及 Util-linux &before; Bash, Diffutils, Findutils, 以及 Man-DB &external; Perl 模块 Expect 和 IO:Tty (测试套件) DejaGNU &dependencies; Bash, Coreutils, Diffutils, GCC, Grep, Make, 以及 Sed &testsuites; &before; &external; Diffutils &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Perl &before; &external; E2fsprogs &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Gzip, Make, Sed, Texinfo, 以及 Util-linux &testsuites; Procps-ng 和 Psmisc &before; &external; Eudev &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Gperf Make, 以及 Sed &testsuites; &before; &external; Expat &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, 以及 Sed &testsuites; &before; XML::Parser &external; Expect &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Patch, Sed, 以及 Tcl &testsuites; &before; &external; File &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, 以及 Zlib &testsuites; &before; &external; Findutils &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; DejaGNU, Diffutils, 以及 Expect &before; &external; Flex &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, M4, Make, Patch, Sed, 以及 Texinfo &testsuites; Bison 和 Gawk &before; IPRoute2, Kbd, 以及 Man-DB &external; Gawk &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP, Grep, Make, MPFR, Patch, Readline, Sed, 以及 Texinfo &testsuites; Diffutils &before; &external; Gcc &dependencies; Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl, Sed, Tar, 以及 Texinfo &testsuites; DejaGNU, Expect, 以及 Shadow &before; &external; GNATISL GDBM &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make, 以及 Sed &testsuites; &before; &external; Gettext &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Diffutils, Perl, 以及 Tcl &before; Automake &external; Glibc &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Python, Sed, 以及 Texinfo &testsuites; File &before; &external; GMP &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, M4, Make, Sed, 以及 Texinfo &testsuites; &before; MPFR 和 GCC &external; Gperf &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, 以及 Make &testsuites; Diffutils 和 Expect &before; &external; Grep &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Patch, Sed, 以及 Texinfo &testsuites; Gawk &before; Man-DB &external; Pcre Groff &dependencies; Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc, Grep, Make, Patch, Sed, 以及 Texinfo &testsuites; 没有可用的测试套件 &before; Man-DB 和 Perl &external; GPL Ghostscript GRUB &dependencies; Bash, Binutils, Bison, Coreutils, Diffutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, 以及 Xz &testsuites; &before; &external; Gzip &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Diffutils 和 Less &before; Man-DB &external; Iana-Etc &dependencies; Coreutils, Gawk, 以及 Make &testsuites; 没有可用的测试套件 &before; Perl &external; Inetutils &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, Texinfo, 以及 Zlib &testsuites; 没有可用的测试套件 &before; Tar &external; Intltool &dependencies; Bash, Gawk, Glibc, Make, Perl, Sed, 以及 XML::Parser &testsuites; Perl &before; &external; IProute2 &dependencies; Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, 以及 Linux API Headers &testsuites; 没有可用的测试套件 &before; &external; Kbd &dependencies; Bash, Binutils, Bison, Check, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Patch, 以及 Sed &testsuites; 没有可用的测试套件 &before; &external; Kmod &dependencies; Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext, Glibc, Gzip, Make, Pkg-config, Sed, Xz-Utils, 以及 Zlib &testsuites; 没有可用的测试套件 &before; Eudev &external; Less &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, 以及 Sed &testsuites; 没有可用的测试套件 &before; Gzip &external; Pcre Libcap &dependencies; Attr, Bash, Binutils, Coreutils, GCC, Glibc, Perl, Make, 以及 Sed &testsuites; 没有可用的测试套件 &before; &external; Linux-PAM Libelf &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, and Make &testsuites; No test suite available &before; Linux Kernel &external; Libffi &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, 以及 Sed &testsuites; DejaGnu &before; Python &external; Libpipeline &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Check &before; Man-DB &external; Libtool &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Autoconf, Automake, 以及 Findutils &before; &external; Linux Kernel &dependencies; Bash, Bc, Binutils, Coreutils, Diffutils, Findutils, GCC, Glibc, Grep, Gzip, Kmod, Libelf, Make, Ncurses, OpenSSL, Perl, 以及 Sed &testsuites; 没有可用的测试套件 &before; &external; M4 &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Diffutils &before; Autoconf 和 Bison &external; libsigsegv Make &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Perl 和 Procps-ng &before; &external; Man-DB &dependencies; Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM, Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Sed, 以及 Xz &testsuites; Util-linux &before; &external; Man-Pages &dependencies; Bash, Coreutils, 以及 Make &testsuites; 没有可用的测试套件 &before; &external; Meson &dependencies; Ninja 和 Python &testsuites; 没有可用的测试套件 &before; Systemd &external; MPC &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, MPFR, Sed, 以及 Texinfo &testsuites; &before; GCC &external; MPFR &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, GMP, Make, Sed, 以及 Texinfo &testsuites; &before; Gawk 和 GCC &external; Ncurses &dependencies; Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc, Grep, Make, Patch, 以及 Sed &testsuites; 没有可用的测试套件 &before; Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc, Readline, Texinfo, Util-linux, 以及 Vim &external; Ninja &dependencies; Binutils, Coreutils, Gcc, 以及 Python &testsuites; &before; Meson &external; Asciidoc, Doxygen, Emacs, 以及 re2c Openssl &dependencies; Binutils, Coreutils, Gcc, Make, 以及 Perl &testsuites; &before; Linux &external; Patch &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, 以及 Sed &testsuites; Diffutils &before; &external; Ed Perl &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc, Grep, Groff, Make, Sed, 以及 Zlib &testsuites; Iana-Etc 和 Procps-ng &before; Autoconf &external; Pkg-config &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Popt, 以及 Sed &testsuites; &before; Kmod &external; Popt &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, 以及 Make &testsuites; Diffutils 和 Sed &before; Pkg-config &external; Procps-ng &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, 以及 Ncurses &testsuites; DejaGNU &before; &external; Psmisc &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, 以及 Sed &testsuites; 没有可用的测试套件 &before; &external; Python &dependencies; Bash, Binutils, Coreutils, GCC, Gdbm, Gettext, Glibc, Grep, Libffi, Make, Ncurses, 以及 Sed &testsuites; GDB 和 Valgrind &before; Ninja &external; Berkeley DB, OpenSSL, SQLite, 以及 Tk Readline &dependencies; Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep, Make, Ncurses, Patch, Sed, 以及 Texinfo &testsuites; 没有可用的测试套件 &before; Bash 和 Gawk &external; Sed &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Sed, 以及 Texinfo &testsuites; Diffutils 和 Gawk &before; E2fsprogs, File, Libtool, 以及 Shadow &external; Shadow &dependencies; Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, 以及 Sed &testsuites; 没有可用的测试套件 &before; Coreutils &external; Acl, Attr, Cracklib, 以及 PAM Sysklogd &dependencies; Binutils, Coreutils, GCC, Glibc, Make, 以及 Patch &testsuites; 没有可用的测试套件 &before; &external; Systemd &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, Expat, Gawk, GCC, Glibc, Gperf, Grep, Intltool, Libcap, Meson, Sed, 以及 Util-linux &testsuites; &before; &external; 很多,参见 BLFS systemd 页面 Sysvinit &dependencies; Binutils, Coreutils, GCC, Glibc, Make, 以及 Sed &testsuites; 没有可用的测试套件 &before; &external; Tar &dependencies; Acl, Attr, Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc, Grep, Inetutils, Make, Sed, 以及 Texinfo &testsuites; Autoconf, Diffutils, Findutils, Gawk, 以及 Gzip &before; &external; Tcl &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, 以及 Sed &testsuites; &before; &external; Texinfo &dependencies; Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep, Make, Ncurses, Patch, 以及 Sed &testsuites; &before; &external; Util-linux &dependencies; Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk, GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Eudev, 以及 Zlib &testsuites; &before; &external; Libcap-ng Vim &dependencies; Acl, Attr, Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, Ncurses, 以及 Sed &testsuites; &before; &external; Xorg, GTK+2, LessTif, Python, Tcl, Ruby, 以及 GPM XML::Parser &dependencies; Bash, Binutils, Coreutils, Expat, GCC, Glibc, Make, 以及 Perl &testsuites; Perl &before; Intltool &external; Xz &dependencies; Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, 以及 Make. &testsuites; &before; Eudev, GRUB, Kmod, 以及 Man-DB &external; Zlib &dependencies; Bash, Binutils, Coreutils, GCC, Glibc, Make, 以及 Sed &testsuites; &before; File, Kmod, Perl, 以及 Util-linux &external;