C. Dependencies
Every package built in LFS relies on one or more other packages in
order to build and install properly. Some packages even participate
in circular dependencies, that is, the first package depends on the
second which in turn depends on the first. Because of these
dependencies, the order in which packages are built in LFS is very
important. The purpose of this page is to document the dependencies
of each package built in LFS.
For each package we build, we have listed three, and sometimes four,
types of dependencies. The first lists what other packages need to be
available in order to compile and install the package in question.
The second lists what packages, in addition to those on the first
list, need to be available in order to run the test suites. The third
list of dependencies are packages that require this package to be
built and installed in its final location before they are built and
installed. In most cases, this is because these packages will
hardcode paths to binaries within their scripts. If not built in a
certain order, this could result in paths of /tools/bin/[binary]
being placed inside scripts installed to the final system. This is
obviously not desirable.
The last list of dependencies are optional packages that are not
addressed in LFS, but could be useful to the user. These packages may
have additional mandatory or optional dependencies of their own. For
these dependencies, the recommeded practice is to install them after
completion of the LFS book and then go back an rebuild the LFS
package. In several cases, reinstallation is addressed in BLFS.
Autoconf
安装依赖: Bash, Coreutils, Grep, M4, Make, Perl, Sed, and
Texinfo
测试套件依赖: Automake, Diffutils, Findutils, GCC, and Libtool
Automake
安装依赖: Autoconf, Bash, Coreutils, Gettext, Grep, M4, Make,
Perl, Sed, and Texinfo
测试套件依赖: Binutils, Bison, Bzip2, DejaGNU, Diffutils, Expect,
Findutils, Flex, GCC, Gettext, Gzip, Libtool, and Tar.
Bash
安装依赖: Bash, Binutils, Bison, Coreutils, Diffutils, Gawk, GCC,
Glibc, Grep, Make, Ncurses, Patch, Readline, Sed, and
Texinfo
Bc
安装依赖: Bash, Binutils, Bison, Coreutils, GCC, Glibc, Grep,
Make, and Readline
Binutils
安装依赖: Bash, Binutils, Coreutils, Diffutils, File, Gawk, GCC,
Glibc, Grep, Make, Perl, Sed, Texinfo and Zlib
测试套件依赖: DejaGNU and Expect
Bison
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
M4, Make, and Sed
测试套件依赖: Diffutils, Findutils, and Flex
可选依赖: Doxygen (test suite)
Bzip2
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Make,
and Patch
Check
安装依赖: GCC, Grep, Make, Sed, and Texinfo
Coreutils
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, GMP,
Grep, Make, Patch, Perl, Sed, and Texinfo
测试套件依赖: Diffutils, E2fsprogs, Findutils, Shadow, and
Util-linux
安装必须先于: Bash, Diffutils, Findutils, Man-DB, and Udev
可选依赖: Perl Expect and IO:Tty modules (for test suite)
DejaGNU
安装依赖: Bash, Coreutils, Diffutils, GCC, Grep, Make, and
Sed
Diffutils
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Gettext, Glibc,
Grep, Make, Sed, and Texinfo
Expect
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
Make, Patch, Sed, and Tcl
E2fsprogs
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Gzip, Make, Sed, Texinfo, and Util-linux
File
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Make, Sed, and Zlib
Findutils
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Sed, and Texinfo
测试套件依赖: DejaGNU, Diffutils, and Expect
Flex
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
M4, Make, Patch, Sed, and Texinfo
测试套件依赖: Bison (suppressed) and Gawk
安装必须先于: IPRoute2, Kbd, and Man-DB
Gawk
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Patch, Sed and, Texinfo
Gcc
安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk,
GCC, Gettext, Glibc, GMP, Grep, M4, Make, MPC, MPFR, Patch, Perl,
Sed, Tar, and Texinfo
测试套件依赖: DejaGNU and Expect
GDBM
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Grep, Make,
and Sed
Gettext
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep,
Make, Sed, and Texinfo
测试套件依赖: Diffutils, Perl, and Tcl
Glibc
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC,
Gettext, Grep, Gzip, Linux API Headers, Make, Perl, Sed, and
Texinfo
GMP
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, M4, Make, Sed and Texinfo
Grep
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext,
Glibc, Grep, Make, Patch, Sed, and Texinfo
可选依赖: Pcre, Xorg, and CUPS
Groff
安装依赖: Bash, Binutils, Bison, Coreutils, Gawk, GCC, Glibc,
Grep, Make, Patch, Sed, and Texinfo
测试套件依赖: No test suite available
GRUB
安装依赖: Bash, Binutils, Bison, Coreutils, Diffutils, GCC,
Gettext, Glibc, Grep, Make, Ncurses, Sed, Texinfo, and Xz
Gzip
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed,
and Texinfo
Iana-Etc
安装依赖: Coreutils, Gawk, and Make
测试套件依赖: No test suite available
Inetutils
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make,
Ncurses, Patch, Sed, Texinfo, and Zlib
测试套件依赖: No test suite available
IProute2
安装依赖: Bash, Bison, Coreutils, Flex, GCC, Glibc, Make, and
Linux API Headers
测试套件依赖: No test suite available
Kbd
安装依赖: Bash, Binutils, Bison, Check, Coreutils, Flex, GCC,
Gettext, Glibc, Gzip, Make, Patch, and Sed
测试套件依赖: No test suite available
Kmod
安装依赖: Bash, Binutils, Bison, Coreutils, Flex, GCC, Gettext,
Glibc, Gzip, Make, Sed, Xz-Utils, Zlib
测试套件依赖: No test suite available
Less
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
Make, Ncurses, and Sed
测试套件依赖: No test suite available
Libpipeline
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Make, Sed, and Texinfo
Libtool
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Make, Sed, and Texinfo
Linux Kernel
安装依赖: Bash, Bc, Binutils, Coreutils, Diffutils, Findutils,
GCC, Glibc, Grep, Gzip, Kmod, Make, Ncurses, Perl, and Sed
测试套件依赖: No test suite available
M4
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, Sed,
and Texinfo
安装必须先于: Autoconf and Bison
Make
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Sed, and Texinfo
测试套件依赖: Perl and Procps-ng
Man-DB
安装依赖: Bash, Binutils, Bzip2, Coreutils, Flex, GCC, GDBM,
Gettext, Glibc, Grep, Groff, Gzip, Less, Libpipeline, Make, Sed,
and Xz
Man-Pages
安装依赖: Bash, Coreutils, and Make
测试套件依赖: No test suite available
MPC
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, GMP, Make, MPFR, Sed and Texinfo
MPFR
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, GMP, Make, Sed and Texinfo
Ncurses
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Make, Patch, and Sed
测试套件依赖: No test suite available
安装必须先于: Bash, GRUB, Inetutils, Less, Procps-ng, Psmisc,
Readline, Texinfo, Util-linux, and Vim
Patch
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and
Sed
Perl
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, GDBM, Glibc,
Grep, Groff, Make, Sed, and Zlib
测试套件依赖: Iana-Etc and Procps-ng
Pkg-config
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep,
Make, Popt, and Sed
Popt
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep,
Make
测试套件依赖: Diffutils and Sed
Procps-ng
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Make, and
Ncurses
Psmisc
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Ncurses, and Sed
测试套件依赖: No test suite available
Readline
安装依赖: Bash, Binutils, Coreutils, Gawk, GCC, Glibc, Grep,
Make, Ncurses, Patch, Sed, and Texinfo
测试套件依赖: No test suite available
Sed
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Sed, and Texinfo
测试套件依赖: Diffutils and Gawk
安装必须先于: E2fsprogs, File, Libtool, and Shadow
Shadow
安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk,
GCC, Gettext, Glibc, Grep, Make, and Sed
测试套件依赖: No test suite available
可选依赖: Acl, Attr, Cracklib, PAM
Sysklogd
安装依赖: Binutils, Coreutils, GCC, Glibc, Make, and Patch
测试套件依赖: No test suite available
Sysvinit
安装依赖: Binutils, Coreutils, GCC, Glibc, Make, and Sed
测试套件依赖: No test suite available
Tar
安装依赖: Bash, Binutils, Bison, Coreutils, GCC, Gettext, Glibc,
Grep, Inetutils, Make, Sed, and Texinfo
测试套件依赖: Autoconf, Diffutils, Findutils, Gawk, and Gzip
Tcl
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
Make, and Sed
Texinfo
安装依赖: Bash, Binutils, Coreutils, GCC, Gettext, Glibc, Grep,
Make, Ncurses, Patch, and Sed
Udev
安装依赖: Bash, Binutils, Coreutils, Diffutils, Gawk, GCC, Glibc,
Grep, Kmod, Make, Sed, and Util-linux
测试套件依赖: No test suite available
可选依赖: Glib, Pci-Utils, Python, Systemd, USB-Utils
Util-linux
安装依赖: Bash, Binutils, Coreutils, Diffutils, Findutils, Gawk,
GCC, Gettext, Glibc, Grep, Make, Ncurses, Sed, Udev, and
Zlib
Vim
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep,
Make, Ncurses, and Sed
可选依赖: Xorg, GTK+2, LessTif, Python, Tcl, Ruby, and GPM
Xz
安装依赖: Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, and
Make.
安装必须先于: GRUB, Kmod, Man-DB, Udev
Zlib
安装依赖: Bash, Binutils, Coreutils, GCC, Glibc, Make, and
Sed
安装必须先于: File, Kmod, Perl, and Util-linux