grep-inst.xml 993 B

123456789101112131415161718192021222324252627282930
  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 Grep is not linked against the PCRE library,
  12. which is often only available as a shared library in distributions. Not
  13. using this option might result in a compilation error.</para></listitem>
  14. </itemizedlist>
  15. <para>Continue with compiling the package:</para>
  16. <para><screen><userinput>make</userinput></screen></para>
  17. <para>And finish off installing the package:</para>
  18. <para><screen><userinput>make install</userinput></screen></para>
  19. </sect2>