Installing Grep-2.5.1

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

Official download location for Grep (2.5.1): 
ftp://ftp.gnu.org/gnu/grep/

For its installation Grep 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:

Compile the programs:

make

As discussed earlier, we don't recommend running the test suites for the temporary tools here in this chapter. If you still want to run the Grep test suite anyway, the following command will do so:

make check

Then install them and their documentation:

make install

The details on this package are found in the Section called Contents of Grep in Chapter 6.