Installing Grep-2.5

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

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

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.

Contents of Grep

Last checked against version 2.5.

Program Files

egrep (link to grep), fgrep (link to grep) and grep

Descriptions

egrep

egrep prints lines from files matching an extended regular expression pattern.

fgrep

fgrep prints lines from files matching a list of fixed strings, separated by newlines, any of which is to be matched.

grep

grep prints lines from files matching a basic regular expression pattern.

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