加载共享库时出错:“libpcre.so.0:无法打开共享对象文件:没有这样的文件或目录" [英] Error while loading shared libraries: 'libpcre.so.0: cannot open shared object file: No such file or directory'
问题描述
我刚刚安装了Passenger 3.0.11 和nginx 并得到了这个错误:
I just installed Passenger 3.0.11 and nginx and got this error:
启动nginx:/opt/nginx/sbin/nginx:加载共享库时出错:libpcre.so.0:无法打开共享对象文件:没有那个文件或目录
Starting nginx: /opt/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory
推荐答案
消息就是它所说的.nginx
可执行文件被编译为期望 PCRE(Perl 兼容的正则表达式)共享库在 LD_LIBRARY_PATH 的某处可用或在 /etc/ld.so.conf
中指定或任何适用于您的操作系统的等效库定位机制,它都无法找到该库.
The message means what it says. The nginx
executable was compiled to expect the PCRE (Perl-compatible Regular Expression) shared library to be available somewhere on LD_LIBRARY_PATH or specified in /etc/ld.so.conf
or whatever equivalent library-locating mechanisms apply to your operating system, and it cannot find the library.
您需要安装 PCRE - 或配置您的环境,以便 nginx
将查找安装它的 PCRE 库.
You will need to install PCRE - or configure your environment so that nginx
will look for the PCRE library where it is installed.
这篇关于加载共享库时出错:“libpcre.so.0:无法打开共享对象文件:没有这样的文件或目录"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!