Grep-2.5.1

The Grep package contains programs for searching through files.

Approximate build time:  0.1 SBU
Required disk space:     5.8 MB

Grep installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC, Gettext, Glibc, Make, Sed, Texinfo.

Installation of Grep

Prepare Grep for compilation:

./configure --prefix=/tools \
    --disable-perl-regexp --with-included-regex

The meaning of the configure options:

  • --disable-perl-regexp: This makes sure that grep does not get linked against a PCRE library that may be present on the host and would not be available once we enter the chroot environment.

  • --with-included-regex: This ensures that Grep uses its internal regular expression code. Without this switch, Grep will use the code from Glibc, which is known to be slightly buggy.

Compile the programs:

make

(If you insist on testing the results, then issue: make check.)

Then install them and their documentation:

make install

The details on this package are found in the section called “Contents of Grep”.