Saturday, November 16, 2013

Compile httpd 2.4.6 - P 5

Introduction to PCRE

The PCRE package contains Perl Compatible Regular Expression libraries. These are useful for implementing regular expression pattern matching using the same syntax and semantics as Perl 5.
This package is known to build and work properly using an LFS-7.4 platform.

Package Information

PCRE Dependencies

Optional

Installation of PCRE

Install PCRE by running the following commands:
./configure --prefix=/usr                     \
            --docdir=/usr/share/doc/pcre-8.33 \
            --enable-unicode-properties       \
            --enable-pcre16                   \
            --enable-pcre32                   \
            --enable-pcregrep-libz            \
            --enable-pcregrep-libbz2          \
            --enable-pcretest-libreadline     \
            --disable-static                 &&
make
To test the results, issue: make check.
Now, as the root user:
make install                     &&
mv -v /usr/lib/libpcre.so.* /lib &&
ln -sfv ../../lib/$(readlink /usr/lib/libpcre.so) /usr/lib/libpcre.so

Command Explanations

--enable-unicode-properties: This switch enables Unicode properties support and includes the code for handling UTF-8/16/32 character strings in the library. You need this switch if you are going to build GLib-2.38.2 with the --with-pcre=system switch.
--enable-pcre16: This switch enables 16 bit character support.
--enable-pcre32: This switch enables 32 bit character support.
--enable-pcregrep-libz: This switch adds support to pcregrep to read .gz compressed files.
--enable-pcregrep-libbz2: This switch adds support to pcregrep to read .bz2 compressed files.
--enable-pcretest-libreadline: This switch adds line editing and history features to pcretest program.
--disable-static: This switch prevents installation of static versions of the libraries.
mv -v /usr/lib/libpcre.so.* /lib: Moves the PCRE library on the root filesystem so that it is available in case grep gets reinstalled with PCRE support.

Contents

Installed Programs:pcregrep, pcretest and pcre-config
Installed Libraries:libpcre.so, libpcre16.so, libpcre32.so, libpcrecpp.so and libpcreposix.so
Installed Directory:/usr/share/doc/pcre-8.33

Short Descriptions

pcregrep
is a grep that understands Perl compatible regular expressions.
pcretest
can test a Perl compatible regular expression.
pcre-config
is used during the compile process of programs linking to the PCRE libraries.

Related Posts:

  • Install phalcon with MAMP This is instructions on how to compile and install the phalcon extension on Mac OS X (Lion), along with command-line tools. Everything will be done through the terminal, except installation of Xcode and the comma… Read More
  • Configure apache to use php-fpm Apache httpd 2.4.x sử dụng mod_proxy_fcgi và php_fpm. Chi tiết bên dưới sẽ hướng dẫn bạn cấu hình php-fpm virtual host. Code: [root@linux24h httpd.d]# cd /usr/local/php/etc [root@linux24h e… Read More
  • Định dạng, format ổ cứng trên Linux1. Sử dụng lệnh trên Linux Trên Linux, sử dụng lệnh fdisk để phân chia partition của ổ cứng, mkfs để format, mount để gắn một partition đã format vào một mount point, chỉnh sửa fstab để Linux có thể tự động mount khi boo… Read More
  • Compiling and installing php 5.4.15 and httpd 2.4.4 from sourceHigh-performance PHP on apache httpd 2.4.x using mod_proxy_fcgi and php-fpmBài viết sau sẽ hướng dẫn các bạn build Linux Web server nâng cao bao gồm MySQL, php và apache(LAMP) từ source trên CentOS 6.41. Cài đặt MySQLXem chi … Read More
  • Cách sử dụng /etc/hosts.allow và /etc/hosts.deny Hai tập tin này định nghĩa các quy tắt(luật) truy cập vào hệ thống ở tầng ứng dụng mạng. Dựa trên điều khiển TCPWappers và tôi thường gọi nó là một dạng tường lửa ở tầng ứng dụng. Số khác thì gọi là ACL(ACCESS CONTROL LIST).… Read More