NGINX启动时提示错误:
/usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007fff48ff0000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0×0000003065800000)
libpcre.so.1 => not found
libssl.so.6 => /lib64/libssl.so.6 (0×0000003067000000)
libcrypto.so.6 => /lib64/libcrypto.so.6 (0×0000003066400000)
libdl.so.2 => /lib64/libdl.so.2 (0×0000003063000000)
libz.so.1 => /lib64/libz.so.1 (0x0000003063c00000)
libc.so.6 => /lib64/libc.so.6 (0x0000003062c00000)
libgssapi_krb5.so.2 => /usr/lib64/libgssapi_krb5.so.2 (0x0000003066c00000)
libkrb5.so.3 => /usr/lib64/libkrb5.so.3 (0x0000003069c00000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0×0000003068800000)
libk5crypto.so.3 => /usr/lib64/libk5crypto.so.3 (0×0000003069000000)
/lib64/ld-linux-x86-64.so.2 (0×0000003062800000)
libkrb5support.so.0 => /usr/lib64/libkrb5support.so.0 (0x000000306a800000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x0000003067c00000)
libresolv.so.2 => /lib64/libresolv.so.2 (0×0000003068400000)
libselinux.so.1 => /lib64/libselinux.so.1 (0×0000003064400000)
libsepol.so.1 => /lib64/libsepol.so.1 (0×0000003064000000)
解决方法:
ln -s /usr/local/lib/libpcre.so.1 /lib64
32位系统则:
ln -s /usr/local/lib/libpcre.so.1 /lib
注:
/usr/local/lib/libpcre.so.1 为prce安装后的文件地址
低版本prce对应的libpcre.so.1 为libpcre.so.0
copy from : http://www.cnblogs.com/cnsanshao/p/3652510.html
相关推荐
sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 这种错误是由于环境中缺少 libpcre.so.1 文件所致。解决方法是创建一个软链接: ...
#### 一、启动错误:`sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory` **问题描述**: 在尝试启动Nginx时,可能会遇到如下的错误...
error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 五、启动 Nginx 安装完成后,需要启动 Nginx 服务器: /usr/local/webserver/nginx/sbin/...
error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory ``` 这通常是因为系统找不到所需的库文件。解决方法是创建一个软链接指向正确的库文件位置: ``...
- 如果遇到 `libpcre.so.1/libpcre.so.0: cannot open shared object file` 错误,可以通过创建符号链接来解决,例如 `ln -s /usr/local/lib/libpcre.so.1 /lib64`(对于 64 位系统)。 学习 Nginx 对于 Java ...
- 当遇到共享库加载错误时,如`error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory`,可通过创建软链接的方式解决。 - 为了保证服务的正常运行,建议...