Nginx: error while loading shared libraries: libpc

[[email protected] conf]# /usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory

确认已经安装PCRE:

[[email protected] lib]$ cd /lib
[[email protected] lib]$ ls *pcre*
libpcre.so.0  libpcre.so.0.0.1
[[email protected] nginx]$ find / -type f -name *libpcre.so.*

添加软链接:

[[email protected] lib]$ ln -s /lib/libpcre.so.0.0.1 /lib/libpcre.so.1

前面在一般的linux上可以解决此问题.

注: 在有的操作系统上面,安装pcre后,安装的位置为/usr/local/lib/*pcre*

在redhat 64位机器之上有这样的情况.

在redhat 64位机器上, nginx可能读取的pcre文件为/lib64/libpcre.so.1文件.

所以在改用下面的软连接:

[[email protected] ~]$ ln -s /usr/local/lib/libpcre.so.1 /lib64/
时间: 2024-10-12 17:42:52

Nginx: error while loading shared libraries: libpc的相关文章

Nginx: error while loading shared libraries: libpcre.so.1解决

Shell代码 [[email protected] conf]# /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 确认已经安装PCRE: Shell代码 [[email protected] lib]$ cd /

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

wget http://geolite.maxmind.com/download/geoip/api/c/GeoIP.tar.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz wget http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/GeoIP.dat.gz # tar xzvf GeoIP.tar.gz #

nginx error while loading shared libraries

linux 64位安装nginx后启动出错报以下错误 [root @localhost nginx- 1.3 . 0 ]# /usr/local/nginx/sbin/nginx error while loading shared libraries: libpcre.so. 1 : cannot open shared object file: No such file or directory 从错误看出是缺少lib文件导致,进一步查看下 [root @localhost nginx- 1

Nginx 启动报错 (nginx: error while loading shared libraries: XXX: cannot open shared object file: No such file or directory ) 的解决办法

本文解决 Nginx 因库文件缺失而无法启动问题 没有采用缺失什么就安装什么的解决办法, 而是借助于另一个正常运行的Linux , 将其上的库文件发送给缺失库文件的 Linux 服务器 以 缺失  libharfbuzz.so.0 为例 , 其它库文件缺失 大同小异 前提摘要: 今天打开我的网址 www.cheery.pro 时发现,  多次重试也没反应, 这可怎么办? 这是怎么回事 问题探究: ping了一下服务器发现可以ping通,  于是猜测可能是Nginx 出现了问题, 打开宝塔面板,

Nginx 启动出错 error while loading shared libraries: libpcre.so.1

在 centos 6.5  64位上编译安装nginx1.63语法检查出错[root @localhost conf]# /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 从错误看出是缺少lib文件导致,进一步

Nginx启动出错 error while loading shared libraries

[[email protected] ~]#  /usr.local/nginx/sbin/nginx -c conf/nginx.conf sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 从错误看出是缺少libpcre.so.1文件导致 [[email protected] nginx]# ldd $

Nginx启动错误:error while loading shared libraries: libpcre.so.0

今天测试的时候,启动一个其他机器预编译好的nginx到目标测试机器(OEL 7.4)启动的时候,报了下列错误: /usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory 经查,OEL 7.4版本下/lib64下没有libpcre.so.0这个共享库,故创建一个到libpcre.s

error while loading shared libraries: libpcre.so.1: cannot open shared object file

执行启动nginx:/usr/local/nginx/sbin/nginx 错误:/usr/local/nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 查找:[[email protected] lib]# find /-type f -name *libpcre.so.* 执行:[[ema

解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误

解决软件启动报error while loading shared libraries: libgd.so.2: cannot open shared object错误 今天安装启动nginx的时候报这个错误:error while loading shared libraries: libgd.so.2: cannot open shared object,网上查了相关资料,解决了,在此记录下,也让后面遇到这个问题的朋友能快速解决. 先说解决办法,帮助着急解决问题的朋友,这个是因为缺失gd库,