Nginx启动错误:error while loading shared libraries: libpcre.so.1
1 |
# /usr/local/nginx/sbin/nginx |
2 |
/usr/ local /nginx/sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file : No such file or directory |
从错误提示信息可以得知是因为缺少lib文件导致,进一步查看具体内容:
1 |
# ldd $(which /usr/local/nginx/sbin/nginx) |
2 |
libpthread.so.0 => /lib64/libpthread.so.0 (0x00000030e8400000) |
3 |
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00000030f9a00000) |
4 |
libpcre.so.1 => not found |
5 |
libcrypto.so.6 => /lib64/libcrypto.so.6 (0x00000030f2a00000) |
6 |
libz.so.1 => /lib64/libz.so.1 (0x00000030e8800000) |
7 |
libc.so.6 => /lib64/libc.so.6 (0x00000030e7800000) |
8 |
/lib64/ld-linux-x86-64.so.2 (0x00000030e7400000) |
9 |
libdl.so.2 => /lib64/libdl.so.2 (0x00000030e8000000) |
查看结果显示 : libpcre.so.1 => not found ,同时注意lib库的路径,有/lib/* 和 /lib64/* 之分。
比如上面的是 /lib64/*,这个和下面解决问题时创建的软连接有关系
解决办法:
1、首先确认已经安装好pcre 软件(nginx 依赖该软件)
2、创建软连接
对于/lib/* 32位系统来说:
1 |
#查看lib库 |
2 |
# ls /lib/ |grep pcre |
3 |
libpcre.so.0 |
4 |
libpcre.so.0.0.1 |
5 |
#添加软连接 |
6 |
# ln -s /lib/libpcre.so.0.0.1 /lib/libpcre.so.1 |
ps: 也有可能 pcre lib文件在目录:/usr/local/lib/
对于/lib64/* 64位系统来说:
1 |
#查看lib库 |
2 |
# ls /lib64/ |grep pcre |
3 |
libpcre.so. 0 |
4 |
libpcre.so. 0.0 . 1 |
5 |
#添加软连接 |
6 |
# ln -s /lib64/libpcre.so. 0.0 . 1 /lib64/libpcre.so. 1 |
ps: 也有可能 pcre lib文件在目录:/usr/local/lib64/。
Nginx启动错误:error while loading shared libraries: libpcre.so.1的更多相关文章
- Nginx启动错误:error while loading shared libraries: libpcre.so.0
今天测试的时候,启动一个其他机器预编译好的nginx到目标测试机器(OEL 7.4)启动的时候,报了下列错误: /usr/local/nginx/sbin/nginx: error while loa ...
- Nginx启动出错 error while loading shared libraries:
在centos5.7 32位上编译安照 nginx-1.1.16 出错 [root@localhost conf]# /usr/local/nginx/sbin/nginx/usr/local/ngi ...
- (转)Nginx启动出错 error while loading shared libraries
[root@localhost conf]# /usr/local/nginx/sbin/nginx/usr/local/nginx/sbin/nginx: error while loading 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的时候报 ...
- 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 f ...
- 启动uwsgi报错error while loading shared libraries: libpcre.so.1:
启动uwsgi时候报错: [root@ richie]# /usr/bin/uwsgi --ini /usr/local/nginx/conf/uwsgi.ini /usr/bin/uwsgi: er ...
- Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or dir
问题: Ubuntu12.04安装64位系统出现编译错误error while loading shared libraries: libz.so.1: cannot open shared obje ...
- Nginx: error while loading shared libraries: libpcre.so.1解决
Shell代码 [root@tmsapp65 conf]# /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while l ...
- [error]error while loading shared libraries: libpcre.so.1 解决
nginx 安装好之后,启动的时候报错 [root@localhost nginx-1.6.2]# /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin ...
随机推荐
- ab与nc命令,tcpdump命令
ab与nc命令,tcpdump命令 ab -p post.txt -T application/json "http://127.0.0.1:8083/main/index&quo ...
- Codeforces Round #475 Div. 1
B:当n是偶数时无解,因为此时树中有奇数条边,而我们每次都只能删除偶数条.当n是奇数时一定有解,因为此时不可能所有点度数都为奇数,只要找到一个度数为偶数的点,满足将它删掉后,各连通块大小都为奇数就可以 ...
- Quartus prime16.0 与modelsim ae 联调
前言 quartus和modelsim联调对仿真还是很方便的,当然最好是quartus干综合到烧录的活,modelsim单独仿真.而且ae版的性能比se版差. 流程: 1.配置modelsim ae路 ...
- 爬虫_中国天气网_文字天气预报(xpath)
import requests from lxml import etree headers = 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/5 ...
- 爬虫_豆瓣全部正在热映电影 (xpath)
单纯地练习一下xpath import requests from lxml import etree def get_url(url): html = requests.get(url) retur ...
- MT【300】余弦的三倍角公式
2017清华大学THUSSAT附加学科测试数学(二测)$\cos^5\dfrac{\pi}{9}+\cos^5\dfrac{5\pi}{9}+\cos^5\dfrac{7\pi}{9}$ 的值为___ ...
- CSS实现背景透明,文字不透明(兼容所有浏览器)
我们平时所说的调整透明度,其实在样式中是调整不透明度,如下图所示例: 打开ps,在图层面板上,可以看到设置图层整理不透明度的菜单,从 0% (完全透明)到 100%(完全不透明). 实现透明的css方 ...
- luogu3242 接水果 (整体二分+树状数组)
考虑整体二分,问题就变成了每个(水果)路径有多少个满足条件(权值)的(盘子)子路径 考虑一个盘子(a,b)表示两端点(不妨设dfn[a]<dfn[b]),那么他能接到的水果(u,v)一定满足(不 ...
- poj1182、hdu1829(并查集)
题目链接:http://poj.org/problem?id=1182 食物链 Time Limit: 1000MS Memory Limit: 10000K Total Submissions: ...
- OpenLayers学习笔记(四)— QML显示html中openlayers地图的坐标
GitHub:八至 作者:狐狸家的鱼 本文链接:实现QML中显示html中地图的坐标 如何QML与HTML通信已经在这篇文章 QML与HTML通信之画图 详细讲述了 1.HTML var coord; ...