2002-07-08 04:28:42 +08:00
|
|
|
<sect2>
|
2003-10-14 03:38:14 +08:00
|
|
|
<title>Installation of <application><acronym>PCRE</acronym></application></title>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-10-14 03:38:14 +08:00
|
|
|
<para>Install <application><acronym>PCRE</acronym></application> by running the following commands:</para>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2003-11-19 01:31:53 +08:00
|
|
|
<screen><userinput><command>./configure --prefix=/usr --enable-utf8 &&
|
2002-07-08 04:28:42 +08:00
|
|
|
make &&
|
2003-05-01 08:52:23 +08:00
|
|
|
make install</command></userinput></screen>
|
2002-07-08 04:28:42 +08:00
|
|
|
|
2004-02-01 14:03:17 +08:00
|
|
|
<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/ &&
|
|
|
|
ln -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so</command></userinput></screen>
|
|
|
|
|
2002-07-08 04:28:42 +08:00
|
|
|
</sect2>
|
|
|
|
|