Compilation Failed:this version of PCRE is not compiled with PCRE_UTF8 support at offset 0

Source: Internet
Author: User

At the time of installing pcre-8.13.tar.gz wrong, said is missing libpcre.so.0 below is the solution. It's not easy. Oh, a problem is not solved, the new problem comes out. Tied up, will die.

Error
Grep:error while loading shared libraries:libpcre.so.0:cannot open Shared object file:no such file or directory
Missing libpcre.so.0 file to download this file, if the system is 32-bit, you need to put this file in the/lib directory, if the system is 64-bit, you want to put it in the/lib64 directory

Can be downloaded pcre-7.8-6.el6.x86_64.rpm this file into the installation, after the installation of the system's/LIB64 directory will automatically add libpcre.so.0 files

Here's the formal solution.

Install software under Linux
1. Download the original file pcre-8.13.tar.gz
2, unzip the file (can be extracted to the specified target)
Tar zxvf pcre-8.13.tar.gz
CD pcre-8.13 #切换到文件解压所在目标
3. Setting
./configure--enable-utf8--enable-unicode-properties
4.
Make
Make install

After the installation is complete, regenerate and compile PHP

.. /configure--prefix=/home/web/php-5.4/--with-apxs2=/home/web/apache/bin/apxs--with-mysql=mysq installation path
--WITH-CONFIG-FILE-PATH=/HOME/WEB/PHP-5.4/--enable-mbstring

Note that the--with-apxs2=/home/web/apache/bin/apxs effect is
A libphp5.so is generated in the/home/web/apache//modules directory and is automatically added to the httpd.conf
LoadModule Php5_module modules/libphp5.so This sentence

Compilation Failed:this version of PCRE is not compiled with PCRE_UTF8 support at offset 0

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.