Installing Grep-2.5

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

Contents of Grep

Last checked against version 2.5.

Grep is a program used to print lines from a file matching a specified pattern.

Grep installs the following:

Program Files

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

 

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

 

Installation of Grep

Prepare Grep to be compiled:

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

The meaning of the configure option is:

Continue with compiling the package:

make

And finish off installing the package:

make install