Nginx Startup error errors while loading shared libraries

Source: Internet
Author: User

[Email protected] ~]#/usr.local/nginx/sbin/nginx-c conf/nginx.conf

Sbin/nginx:error while loading shared libraries:libpcre.so.1:cannot open Shared object file:no such file or directory


The lack of a libpcre.so.1 file causes the error to be seen

[[email protected] nginx]# LDD $ (Which/usr/local/nginx/sbin/nginx)

Linux-vdso.so.1 = (0x00007fffd87ff000)

libpthread.so.0 =/lib64/libpthread.so.0 (0x00007f320c204000)

Libcrypt.so.1 =/lib64/libcrypt.so.1 (0x00007f320bfcd000)

Libpcre.so.1 = not Found

Libz.so.1 =/lib64/libz.so.1 (0x00007f320bdb6000)

libc.so.6 =/lib64/libc.so.6 (0x00007f320ba22000)

/lib64/ld-linux-x86-64.so.2 (0x00007f320c431000)

libfreebl3.so =/lib64/libfreebl3.so (0x00007f320b7aa000)

libdl.so.2 =/lib64/libdl.so.2 (0x00007f320b5a6000)


It can be seen that libpcre.so.1 = not found is not found, enter the/lib64 directory under manual link

[Email protected] lib64]# ln-s libpcre.so.0.0.1 libpcre.so.1

And then you start the Nginx OK.


Nginx Startup error errors while loading shared libraries

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.