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 $(which /usr/local/nginx/sbin/nginx)

linux-vdso.so.1 =>  (0x00007fffd87ff000)

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f320c204000)

libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f320bfcd000)

libpcre.so.1 => not found

libz.so.1 => /lib64/libz.so.1 (0x00007f320bdb6000)

libc.so.6 => /lib64/libc.so.6 (0x00007f320ba22000)

/lib64/ld-linux-x86-64.so.2 (0x00007f320c431000)

libfreebl3.so => /lib64/libfreebl3.so (0x00007f320b7aa000)

libdl.so.2 => /lib64/libdl.so.2 (0x00007f320b5a6000)

可以看出 libpcre.so.1 => not found 并没有找到,进入/lib64目录中手动链接下

[[email protected] lib64]#  ln -s libpcre.so.0.0.1 libpcre.so.1

然后在启动nginx ok 了

时间: 2024-10-29 10:46:08

Nginx启动出错 error while loading shared libraries的相关文章

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: 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: 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库,

安装源码包inotify启动失败 error while loading shared libraries: libinotifytools.so.0: cannot open shared object fil

今天安装源码包inotify 一切安装妥当之后启动失败,报如下错误: 第一感觉是找不到这个库,此时有两种可能 1,操作系统上没有安装该库 2,操作系统找不到该库 首先在/usr路径下查找该包的名称,如下图 ps:为什么要在/usr下找呢,因为库文件一般都安装在该目录下. 结果只在源码包的安装路径下找到了该库,证明以源码包形式安装该软件的时候该库已经被安装在操作系统中了. 这就验证了上边的第2项,操作系统找不到该库的路径. 此时我们应该想怎么让操作系统找到该库 在这之前呢我们要先知道一点,程序里面

cygwin运行git submodule init出错error while loading shared libraries的解决

installing the Devel\gettext package should solve your problem. git-submodule requires that. Unfortunately this is not marked as dependency. 附apt-cyg工具:https://code.google.com/p/apt-cyg/

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

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

启动MongoDB时,提示:error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

启动MongoDB时,提示: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [[email protected] ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --logpath /usr/local/mongodb/logs/mon

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 prot