nginx: error while loading shared libraries: libpcre.so.1

If you get below error while starting nginx

    error:

nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

nginx couldn’t find the library by itself.
Specify the path of libpcre.so.1 in LD_LIBRARY_PATH and nginx will work fine

How to do specify the path?

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<absolute-path-of-libpcre.so.1>

Published by

Sreejith

A strong believer of: 1. Knowledge is power 2. Progress comes from proper application of knowledge 3. Reverent attains wisdom 4. For one's own salvation, and for the welfare of the world

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s