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