nginx检查报错 error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory
在centos7.3上编译安装nginx-1.12.2 启动测试出错
[root@web02 local]# /usr/local/nginx/sbin/nginx -t
/usr/local/nginx/sbin/nginx: error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory
从错误看出是缺少lib文件导致,进一步查看下
[root@web02 local]# ldd $(which /usr/local/nginx/sbin/nginx)
linux-vdso.so.1 => (0x00007ffdd918e000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007fea2b1c8000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fea2afac000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fea2ad74000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007fea2ab12000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007fea2a8a0000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007fea2a43e000)
libz.so.1 => /lib64/libz.so.1 (0x00007fea2a228000)
libgd.so.2 => /lib64/libgd.so.2 (0x00007fea29fe1000)
libprofiler.so.0 => not found
libc.so.6 => /lib64/libc.so.6 (0x00007fea29c1d000)
/lib64/ld-linux-x86-64.so.2 (0x00007fea2b3d6000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007fea29a1a000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007fea297cc000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007fea294e4000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007fea292e0000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007fea290ac000)
libXpm.so.4 => /lib64/libXpm.so.4 (0x00007fea28e9a000)
libX11.so.6 => /lib64/libX11.so.6 (0x00007fea28b5c000)
libjpeg.so.62 => /lib64/libjpeg.so.62 (0x00007fea28906000)
libfontconfig.so.1 => /lib64/libfontconfig.so.1 (0x00007fea286c9000)
libfreetype.so.6 => /lib64/libfreetype.so.6 (0x00007fea28423000)
libpng15.so.15 => /lib64/libpng15.so.15 (0x00007fea281f7000)
libm.so.6 => /lib64/libm.so.6 (0x00007fea27ef5000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007fea27ce7000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007fea27ae2000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fea278c8000)
libxcb.so.1 => /lib64/libxcb.so.1 (0x00007fea2769f000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x00007fea27475000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007fea2724e000)
libXau.so.6 => /lib64/libXau.so.6 (0x00007fea27049000)
可以看出libprofiler.so.0并没有找到
找出源文件
[root@web02 local]# find / -type f -name "libprofiler.so*"
/usr/local/lib/libprofiler.so.0.4.17
/usr/local/src/gperftools-2.6.90/.libs/libprofiler.so.0.4.17
做软连接
[root@web02 local]# ln -sv /usr/local/lib/libprofiler.so.0.4.17 /lib64/libprofiler.so.0
‘/lib64/libprofiler.so.0’ -> ‘/usr/local/lib/libprofiler.so.0.4.17’
再次检查
[root@web02 local]# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx-1.12.2/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx-1.12.2/conf/nginx.conf test is successful
ok了。
nginx检查报错 error while loading shared libraries: libprofiler.so.0: cannot open shared object file: No such file or directory的更多相关文章
- linux使用wkhtmltopdf报错error while loading shared libraries:
官网提示 linux需要这些动态库.depends on: zlib, fontconfig, freetype, X11 libs (libX11, libXext, libXrender) 在li ...
- 10gRAC运行srvctl报错error while loading shared libraries:
数据库10g才会有这个错,因为11g的grid和oracle是分开的. [oracle@news01 orcl]$ srvctl /u01/app/oracle/db_1/jdk/jre/bin/ja ...
- 运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such file or directory
运行编译后的程序报错 error while loading shared libraries: lib*.so: cannot open shared object file: No such f ...
- 使用arm-none-eabi-gdb报错error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
使用arm-none-eabi-gdb报错error while loading shared libraries: libncurses.so.5: cannot open shared objec ...
- svnadmin:error while loading shared libraries: libaprutil-1.so.0:cannot open shared object file: No such file or directory
wdcp下安装svn后一直提示 svnadmin:error while loading shared libraries: libaprutil-1.so.0:cannot open shared ...
- 动态链接库找不到 : error while loading shared libraries: libgsl.so.0: cannot open shared object file: No such file or directory
问题: 运行gsl(GNU scientific Library)的函数库,用 gcc erf.c -I/usr/local/include -L/usr/local/lib64 -L/usr/loc ...
- ./filezilla: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
opensuse系统 在filezilla官网下载压缩文件解压运行后报 ./filezilla: error while loading shared libraries: libpng12.so.0 ...
- error while loading shared libraries: libpthread.so.0: cannot open shared object file: No such file
安装rac10g,出现例如以下错误: [root@rac2 oracle]# /u01/product/crs/root.sh WARNING: directory '/u01/product' is ...
- 启动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 ...
随机推荐
- php之快速入门学习-17(PHP 命名空间)
PHP 命名空间(namespace) PHP 命名空间(namespace)是在PHP 5.3中加入的,如果你学过C#和Java,那命名空间就不算什么新事物. 不过在PHP当中还是有着相当重要的意义 ...
- Android开发之发送邮件功能的实现(源码分享)
Android开发中可能会碰到怎样发送邮件的困扰,之前我也查了相关的文档,博友们也分享了不少的发送邮件的办法.总共同拥有3种把,我细致阅读了下,发现有的讲的太过复杂跟麻烦,不够清晰.我今天就来分享下我 ...
- 翻转子串(string+KMP+程序猿面试金典)
翻转子串 參与人数:1197时间限制:3秒空间限制:32768K 通过比例:35.03% 最佳记录:0 ms|8552K(来自 ) 题目描写叙述 假定我们都知道很高效的算法来检查一个单词是否为其它字符 ...
- eclipse 图片预览插件
eclipse 图片预览插件 CreateTime--2018年4月22日22:59:55 Author:Marydon 下载地址:eclipse 图片预览插件 将插件文件夹直接拷贝到eclips ...
- 简单的Stack
自己实现的简单的Stack.没有查空满.用于算法考试 #include<iostream> using namespace std; const int MAX = 100; struct ...
- 类的专有方法(__len__)
# -*- coding: utf-8 -*- #python 27 #xiaodeng #http://www.imooc.com/code/6252 #类的专有方法(__len__) #如果一个类 ...
- 使用openssl进行证书格式转换
各类证书由于存储的内容不同(如是否包含公钥/私钥是否加密存储/单一证书或多证书等).采用编 码不同(DER/BASE64).标准不同(如PEM/PKCS),所以尽管X.509标准规定了证书内容规范,但 ...
- FZU - 2039 Pets (二分图匹配 2011年全国大学生程序设计邀请赛(福州))
Description Are you interested in pets? There is a very famous pets shop in the center of the ACM ci ...
- mysql之InnoDB内存管理
InnoDB缓冲池是通过LRU算法来管理page的.频繁使用的page放在LRU列表的前端,最少使用的page在LRU列表的尾端,缓冲池满了的时候,优先淘汰尾端的page. InnoDB中的LRU结构 ...
- MySQL JOIN操作报错问题小解
1 问题描述 在调用一个MySQL存储过程的时候,有时候会出现下面的错误: Illigal mix of collations(gbk\_chinese\_ci, IMPLICIT) and (lat ...