PCRE configuration shared library

Source: Internet
Author: User

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:

Related Article

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.