grep-inst.xml 1018 B

123456789101112131415161718192021222324
  1. <sect2>
  2. <title>Installation of Grep</title>
  3. <para>When installing Grep using glibc-2.1.x on your base system,
  4. it may be necessary to use a fix to prevent a variable name conflict. The
  5. following commands can be used in this case. Note that these commands
  6. can also be used for other glibc versions so if you aren't sure, then
  7. use the first version.</para>
  8. <para><screen><userinput>export CPPFLAGS=-Dre_max_failures=re_max_failures2 &amp;&amp;</userinput>
  9. <userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
  10. <userinput>unset CPPFLAGS &amp;&amp;</userinput>
  11. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  12. <userinput>make install</userinput></screen></para>
  13. <para>If you are using a newer glibc version (2.2.x), you can use the
  14. following commands to install Grep:</para>
  15. <para><screen><userinput>./configure --prefix=$LFS/usr --disable-nls &amp;&amp;</userinput>
  16. <userinput>make LDFLAGS=-static &amp;&amp;</userinput>
  17. <userinput>make install</userinput></screen></para>
  18. </sect2>