加载共享库时出错:"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屋!