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:

  • Compress and Uncompress Files1) To compress files: Examples: tar cvf abc.tar a1.ps a2.tex adir/* # compress files to the file abc.tar gzip -9 abc.tar /* # create abc.tar.gz file. tar cvfz abc.tar.gz a1.ps a2.tex adir/* # directly create abc.tar.gz file … Read More
  • Khoá nhanh IP đang tấn công DDosBước 1: Lấy danh sách những top connection: netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n Bước 2: chạy command route add IP_ADDRESS reject Bước 3: Gỡ bỏ IP khỏi bảng cấm:route d… Read More
  • Config file mysql server Beyond the defaults In the previous article we covered a basic MySQL server setup on CentOS Linux. We set the root password, created a database, and created a user for the database. Now let's look at MyS… Read More
  • Quy định về tên miền Việt Nam (.VN) Định nghĩa các đuôi tên miền¶ COM.VN: Dành cho tổ chức, cá nhân hoạt động thương mại. BIZ.VN: Dành cho các tổ chức, cá nhân hoạt động kinh doanh, tương đương với tên miền COM.VN. EDU.VN: Dành cho các tổ chức, cá nhân hoạt đ… Read More
  • Vòng đời của tên miền Quốc tếMỗi tên miền từ khi được khởi tạo đến lúc ngưng sử dụng đều có một "vòng đời" riêng của nó, thậm chí có những tên miền còn sở hữu nhiều vòng đời.Dưới đây, chúng tôi sẽ trình bày vòng đời của một số tên miền quốc tế thường sử … Read More