Difference between revisions of "Pcre"
JeremyUtley (talk | contribs) |
|||
Line 19: | Line 19: | ||
make install && | make install && | ||
− | install -v -m755 -d /usr/share/doc/pcre-6. | + | install -v -m755 -d /usr/share/doc/pcre-6.7/html && |
− | install -v -m644 doc/html/* /usr/share/doc/pcre-6. | + | install -v -m644 doc/html/* /usr/share/doc/pcre-6.7/html && |
− | install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6. | + | install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6.7 |
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows. | If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows. | ||
Line 76: | Line 76: | ||
mv -v /usr/bin/pcre-config{,-64} && | mv -v /usr/bin/pcre-config{,-64} && | ||
ln -s multiarch_wrapper /usr/bin/pcre-config && | ln -s multiarch_wrapper /usr/bin/pcre-config && | ||
− | install -v -m755 -d /usr/share/doc/pcre-6. | + | install -v -m755 -d /usr/share/doc/pcre-6.7/html && |
− | install -v -m644 doc/html/* /usr/share/doc/pcre-6. | + | install -v -m644 doc/html/* /usr/share/doc/pcre-6.7/html && |
− | install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6. | + | install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6.7 |
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows. | If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows. |
Revision as of 09:57, 18 September 2006
Download Source: | ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-6.7.tar.bz2 |
---|
Dependencies
Non-Multilib
Configure and compile the package:
./configure --prefix=/usr --enable-utf8 && make
Install the package:
make install && install -v -m755 -d /usr/share/doc/pcre-6.7/html && install -v -m644 doc/html/* /usr/share/doc/pcre-6.7/html && install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6.7
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
mv -v /usr/lib/libpcre.so.* /lib/ && ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
Multilib
32Bit
Configure and compile the package:
CC="gcc ${BUILD32}" CXX="g++ ${BUILD32}" ./configure --prefix=/usr --enable-utf8 && make
Install the package:
make install && mv -v /usr/bin/pcre-config{,-32}
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
mv -v /usr/lib/libpcre.so.* /lib/ && ln -v -sf ../../lib/libpcre.so.0 /usr/lib/libpcre.so
N32
Configure and compile the package:
CC="gcc ${BUILDN32}" CXX="g++ ${BUILDN32}" ./configure --prefix=/usr --enable-utf8 --libdir=/usr/lib32 && make
Install the package:
make install && mv -v /usr/bin/pcre-config{,-n32}
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
mv -v /usr/lib32/libpcre.so.* /lib32/ && ln -v -sf ../../lib32/libpcre.so.0 /usr/lib32/libpcre.so
64Bit
Configure and compile the package:
CC="gcc ${BUILD64}" CXX="g++ ${BUILD64}" ./configure --prefix=/usr --enable-utf8 --libdir=/usr/lib64 && make
Install the package:
make install && mv -v /usr/bin/pcre-config{,-64} && ln -s multiarch_wrapper /usr/bin/pcre-config && install -v -m755 -d /usr/share/doc/pcre-6.7/html && install -v -m644 doc/html/* /usr/share/doc/pcre-6.7/html && install -v -m644 doc/{Tech.Notes,*.txt} /usr/share/doc/pcre-6.7
If you reinstall Grep after installing PCRE, Grep will get linked against PCRE and may cause problems if /usr is a separate mount point. To avoid this, either pass the option --disable-perl-regexp when executing ./configure for Grep or move libpcre to /lib as follows.
mv -v /usr/lib64/libpcre.so.* /lib64/ && ln -v -sf ../../lib64/libpcre.so.0 /usr/lib64/libpcre.so