grep-inst.xml 1014 B

12345678910111213141516171819202122232425262728293031
  1. <sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
  2. <sect2>
  3. <title>Installation of Grep</title>
  4. <para>Prepare Grep to be compiled:</para>
  5. <para><screen><userinput>LDFLAGS="-static" CPPFLAGS=-Dre_max_failures=re_max_failures2 \
  6. &nbsp;&nbsp;&nbsp;&nbsp;./configure --prefix=$LFS/static --disable-nls \
  7. &nbsp;&nbsp;&nbsp;&nbsp;--disable-perl-regexp</userinput></screen></para>
  8. <para>The meaning of the configure option is:</para>
  9. <itemizedlist>
  10. <listitem><para><userinput>--disable-perl-regexp</userinput>: This
  11. configure option makes sure <filename>grep</filename> is not linked against
  12. the PCRE library, which is often only available as a shared library in
  13. distributions. Not using this option might result in a compilation
  14. error.</para></listitem>
  15. </itemizedlist>
  16. <para>Continue with compiling the package:</para>
  17. <para><screen><userinput>make</userinput></screen></para>
  18. <para>And finish off installing the package:</para>
  19. <para><screen><userinput>make install</userinput></screen></para>
  20. </sect2>