[Email protected] conf]#/usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx:error while loading shared Libraries:libpcre.so.1:cannot open Shared object file:no such file or directory
confirm that Pcre is installed:
[Email protected] lib]$ cd/lib [[email protected] lib]$ ls *pcre* libpcre.so.0 libpcre.so.0.0.1 [[ Email protected] nginx]$ Find/-type f-name *libpcre.so.*
To add a soft link:
[Email protected] lib]$ ln-s/lib/libpcre.so.0.0.1/lib/libpcre.so.1
This problem can be resolved in front of the General Linux.
Note: On some operating systems, after installing PCRE, the installation location is/usr/local/lib/*pcre*
There is such a situation on the Redhat 64-bit machine.
On the Redhat 64-bit machine, nginx may read the Pcre file as /lib64/libpcre.so.1 file.
So instead, use the following soft connection:
[Email protected] ~]$ ln-s/usr/local/lib/libpcre.so.1/lib64/
Nginx:error while loading shared LIBRARIES:LIBPC