Estimated build time: 0.26 SBU Estimated required disk space: 5 MB |
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 |
--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.
Last checked against version 2.5.
egrep (link to grep), fgrep (link to grep) and grep
egrep prints lines from files matching an extended regular expression pattern.
fgrep prints lines from files matching a list of fixed strings, separated by newlines, any of which is to be matched.
grep prints lines from files matching a basic regular expression pattern.
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