glfs/general/genlib/pcre/pcre-inst.xml
Tushar Teredesai 58fd288476 Added note about grep linking to pcre
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1748 af4574ff-66df-0310-9fd7-8a98e5e911e0
2004-02-01 06:03:17 +00:00

22 lines
1022 B
XML

<sect2>
<title>Installation of <application><acronym>PCRE</acronym></application></title>
<para>Install <application><acronym>PCRE</acronym></application> by running the following commands:</para>
<screen><userinput><command>./configure --prefix=/usr --enable-utf8 &amp;&amp;
make &amp;&amp;
make install</command></userinput></screen>
<para>If you reinstall <application>grep</application> after installing <application>pcre</application>,
<application>grep</application> will get linked against <application>pcre</application> and
may cause problems if <filename>/usr</filename> is a seperate mount point. To avoid this,
either pass the option <emphasis>--disable-perl-regexp</emphasis> when executing <command>./configure</command>
for <application>grep</application> or move <filename>libpcre</filename> to <filename>/lib</filename>
as follows.</para>
<screen><userinput><command>mv /usr/lib/libpcre.so.* /lib/ &amp;&amp;
ln -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</command></userinput></screen>
</sect2>