PCRE configuration shared library
Problem information:
./Nginx: error while loading shared libraries: libpcre. so.1: cannot open shared object file: No such file or directory
Cause: the PCRE Library is not installed, or the PCRE Library is installed without the PCRE shared library.
Solution: configure the PCRE shared library.
1. Find the location of the pcre Library.
[Root @ server06 ~] # Cd/lib
[Root @ server06 lib] # find/-type f-name * libpcre. so .*
/Lib64/libpcre. so.0.0.1
/Usr/local/lib/libpcre. so.1.2.4
/Opt/nginx/pcre-8.36/. libs/libpcre. so.1.2.4
2. Soft connect the PCRE Library.
The pcre file read by the RedHat 64-bit machine is/lib64/libpcre. so.0.0.1.
[Root @ server06 ~] # Ln-s/usr/local/lib/libpcre. so.1/lib64/
[Root @ server06 ~] # Cd/usr/local/nginx/sbin/
[Root @ server06 sbin] #./nginx
For example, if the operating method of a 32-bit machine is of the type, the soft connection address may be
Ln-s/lib/libpcre. so.0.0.1/lib/libpcre. so.1.
This article permanently updates the link address: