5.13. Installing Grep-2.5

Estimated build time:           0.26 SBU
Estimated required disk space:  5 MB

5.13.1. Installation of Grep

Install Grep by running the following commands:

LDFLAGS=-static CPPFLAGS=-Dre_max_failures=re_max_failures2 \
    ./configure --prefix=$LFS/static --disable-nls \
    --disable-perl-regexp &&
make &&
make install

5.13.2. Command explanations

--disable-perl-regexp: This configure option makes sure Grep is not linked against the PCRE library, which is often only available as a shared library in distributions. Not using this option might result in a compilation error.

5.13.3. Contents of Grep

Last checked against version 2.5.

5.13.4. Grep Installation Dependencies

Last checked against version 2.4.2.

Autoconf: autoconf, autoheader
Automake: aclocal, automake
Bash: sh
Binutils: as, ld
Diffutils: cmp
Fileutils: chmod, install, ls, mkdir, mv, rm
Gettext: msgfmt, xgettext
Gcc: cc, cc1, collect2, cpp0, gcc
Glibc: getconf
Grep: egrep, fgrep, grep
M4: m4
Make: make
Gawk: gawk
Sed: sed
Sh-utils: basename, echo, expr, hostname, sleep, uname
Texinfo: install-info, makeinfo
Textutils: cat, tr