Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error while loading shared libraries: 'libpcre.so.0: cannot open shared object file: No such file or directory'

I just installed Passenger 3.0.11 and nginx and got this error:

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

like image 560
user908798 Avatar asked Dec 14 '11 08:12

user908798


People also ask

How do I load a shared library?

Once you've created a shared library, you'll want to install it. The simple approach is simply to copy the library into one of the standard directories (e.g., /usr/lib) and run ldconfig(8). Finally, when you compile your programs, you'll need to tell the linker about any static and shared libraries that you're using.


1 Answers

I got the same error, and I fixed the problem by running sudo ldconfig.

like image 78
Simon Ji Avatar answered Sep 29 '22 19:09

Simon Ji